Selaa lähdekoodia

Fix Medium site detection

Now does a case-insensitive check for "Medium" in meta tag.

This addresses the issue brought up in #22.
pull/23/head
Matt Baer 6 vuotta sitten
vanhempi
commit
4b1ca2a26c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      content.js

+ 1
- 1
content.js Näytä tiedosto

@@ -64,7 +64,7 @@ var observer = new MutationObserver(function(mutations){
var config = {attributes: true};

// Only run this on Medium sites.
if (document.querySelector('head meta[property="al:ios:app_name"][content="medium"]')) {
if (document.querySelector('head meta[property="al:ios:app_name"][content="medium" i]')) {
makeReadable();
shrinkHeaderImages();



Ladataan…
Peruuta
Tallenna