1
0
mirror of https://github.com/thebaer/MMRA synced 2024-11-13 10:11:01 +00:00

Fix Medium site detection

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

This addresses the issue brought up in #22.
This commit is contained in:
Matt Baer 2018-03-31 09:29:15 -04:00
parent 96d77d8ef5
commit 4b1ca2a26c

View File

@ -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();