use var instead of magic
This commit is contained in:
parent
f2c6354010
commit
f41c0494de
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user