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
|
settings.disableAll = true
|
||||||
localStorage.setItem '4chan-settings', JSON.stringify settings
|
localStorage.setItem '4chan-settings', JSON.stringify settings
|
||||||
else
|
else
|
||||||
$.onExists doc, 'body', ->
|
$.global ->
|
||||||
$.global -> window.Config.disableAll = true
|
Object.defineProperty window, 'Config', {value: {disableAll: true}}
|
||||||
|
|
||||||
open: (openSection) ->
|
open: (openSection) ->
|
||||||
return if Settings.overlay
|
return if Settings.overlay
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user