Don't try to disable 4chan native extension on non-4chan sites.
This commit is contained in:
parent
53f2252f38
commit
51a6893fdd
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user