Skip to content

Commit

Permalink
Don't try to disable 4chan native extension on non-4chan sites.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccd0 committed Jul 26, 2019
1 parent 53f2252 commit 51a6893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/General/Settings.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Settings =
$.on d, 'AddSettingsSection', Settings.addSection
$.on d, 'OpenSettings', (e) -> Settings.open e.detail

if Conf['Disable Native Extension']
if g.SITE.software is 'yotsuba' and Conf['Disable Native Extension']
if $.hasStorage
# Run in page context to handle case where 4chan X has localStorage access but not the page.
# (e.g. Pale Moon 26.2.2, GM 3.8, cookies disabled for 4chan only)
Expand Down

0 comments on commit 51a6893

Please # to comment.