Don't try to disable 4chan native extension on non-4chan sites.

This commit is contained in:
ccd0 2019-07-25 18:56:43 -07:00
parent 53f2252f38
commit 51a6893fdd

View File

@ -21,7 +21,7 @@ Settings =
$.on d, 'AddSettingsSection', Settings.addSection $.on d, 'AddSettingsSection', Settings.addSection
$.on d, 'OpenSettings', (e) -> Settings.open e.detail $.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 if $.hasStorage
# Run in page context to handle case where 4chan X has localStorage access but not the page. # 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) # (e.g. Pale Moon 26.2.2, GM 3.8, cookies disabled for 4chan only)