diff --git a/4chan_x.user.js b/4chan_x.user.js index efb1ac4ef..c4e7d48c2 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1052,7 +1052,7 @@ cooldown.start(); } return $.bind(window, 'storage', function(e) { - if (e.key === ("AEOS.4chan_x." + g.BOARD + "/cooldown")) { + if (e.key === ("" + NAMESPACE + g.BOARD + "/cooldown")) { return cooldown.start(); } }); diff --git a/script.coffee b/script.coffee index 5e175d755..cb9fe5493 100644 --- a/script.coffee +++ b/script.coffee @@ -824,7 +824,7 @@ options = cooldown = init: -> cooldown.start() if Date.now() < $.getValue g.BOARD+'/cooldown', 0 - $.bind window, 'storage', (e) -> cooldown.start() if e.key is "AEOS.4chan_x.#{g.BOARD}/cooldown" + $.bind window, 'storage', (e) -> cooldown.start() if e.key is "#{NAMESPACE}#{g.BOARD}/cooldown" start: -> cooldown.duration = Math.ceil ($.getValue(g.BOARD+'/cooldown', 0) - Date.now()) / 1000