From 31b4097999ee0a89bc16cb74ee7f0660b291a404 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 17 Jul 2019 10:54:54 -0700 Subject: [PATCH] Don't insert header etc. on .json URLs. --- src/main/Main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 5719cd31d..8fd3ce8ba 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -525,7 +525,7 @@ Main = Main.thisPageIsLegit = if g.SITE.isThisPageLegit g.SITE.isThisPageLegit() else - !/^[45]\d\d\b/.test(document.title) + !/^[45]\d\d\b/.test(document.title) and !/\.json$/.test(location.pathname) Main.thisPageIsLegit ready: (cb) ->