Fix race condition in disabling native extension. #938
This commit is contained in:
parent
218c758173
commit
de0dbbf5da
@ -28,8 +28,8 @@ Settings =
|
||||
settings.disableAll = true
|
||||
localStorage.setItem '4chan-settings', JSON.stringify settings
|
||||
else
|
||||
$.onExists doc, 'body', ->
|
||||
$.global -> window.Config.disableAll = true
|
||||
$.global ->
|
||||
Object.defineProperty window, 'Config', {value: {disableAll: true}}
|
||||
|
||||
open: (openSection) ->
|
||||
return if Settings.overlay
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user