Don't insert header etc. on .json URLs.

This commit is contained in:
ccd0 2019-07-17 10:54:54 -07:00
parent e2373db508
commit 31b4097999

View File

@ -525,7 +525,7 @@ Main =
Main.thisPageIsLegit = if g.SITE.isThisPageLegit Main.thisPageIsLegit = if g.SITE.isThisPageLegit
g.SITE.isThisPageLegit() g.SITE.isThisPageLegit()
else else
!/^[45]\d\d\b/.test(document.title) !/^[45]\d\d\b/.test(document.title) and !/\.json$/.test(location.pathname)
Main.thisPageIsLegit Main.thisPageIsLegit
ready: (cb) -> ready: (cb) ->