From 4b1ca2a26c566efed84d098b28c668990a01506d Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 31 Mar 2018 09:29:15 -0400 Subject: [PATCH] Fix Medium site detection Now does a case-insensitive check for "Medium" in meta tag. This addresses the issue brought up in #22. --- content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content.js b/content.js index b3d46a5..d88dcd7 100644 --- a/content.js +++ b/content.js @@ -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();