fix name clash
This commit is contained in:
parent
452c2e0bca
commit
fd94f7da60
@ -868,14 +868,14 @@ updateAuto = ->
|
||||
clearInterval g.interval
|
||||
|
||||
updateInterval = ->
|
||||
unless n = Number @value
|
||||
n = 10
|
||||
@value = n
|
||||
GM_setValue 'Interval', n
|
||||
unless num = Number @value
|
||||
num = 10
|
||||
@value = num
|
||||
GM_setValue 'Interval', num
|
||||
|
||||
span = $ '#updater #timer'
|
||||
if 0 > Number span.textContent
|
||||
span.textContent = -1 * n
|
||||
span.textContent = -1 * num
|
||||
|
||||
updateNow = ->
|
||||
g.req = request location.href, updateCallback
|
||||
|
||||
12
4chan_x.js
12
4chan_x.js
@ -1120,15 +1120,15 @@
|
||||
}
|
||||
};
|
||||
updateInterval = function() {
|
||||
var span;
|
||||
if (!(n = Number(this.value))) {
|
||||
n = 10;
|
||||
var num, span;
|
||||
if (!(num = Number(this.value))) {
|
||||
num = 10;
|
||||
}
|
||||
this.value = n;
|
||||
GM_setValue('Interval', n);
|
||||
this.value = num;
|
||||
GM_setValue('Interval', num);
|
||||
span = $('#updater #timer');
|
||||
if (0 > Number(span.textContent)) {
|
||||
return span.textContent = -1 * n;
|
||||
return span.textContent = -1 * num;
|
||||
}
|
||||
};
|
||||
updateNow = function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user