Revert network tweak. It breaks updating if you reopen a page that doesn't have the latest posts cached.
This commit is contained in:
parent
f3d0b83728
commit
71b89622d9
@ -2850,16 +2850,6 @@
|
|||||||
this.thread = $.id("t" + g.THREAD_ID);
|
this.thread = $.id("t" + g.THREAD_ID);
|
||||||
this.unsuccessfulFetchCount = 0;
|
this.unsuccessfulFetchCount = 0;
|
||||||
this.lastModified = '0';
|
this.lastModified = '0';
|
||||||
$.ajax("//api.4chan.org/" + g.BOARD + "/res/" + g.THREAD_ID + ".json", {
|
|
||||||
onload: function() {
|
|
||||||
if (this.status !== 200) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return Updater.lastModified = this.getResponseHeader('Last-Modified');
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
type: 'head'
|
|
||||||
});
|
|
||||||
_ref = $$('input', dialog);
|
_ref = $$('input', dialog);
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
input = _ref[_i];
|
input = _ref[_i];
|
||||||
|
|||||||
@ -2279,11 +2279,6 @@ Updater =
|
|||||||
|
|
||||||
@unsuccessfulFetchCount = 0
|
@unsuccessfulFetchCount = 0
|
||||||
@lastModified = '0'
|
@lastModified = '0'
|
||||||
$.ajax "//api.4chan.org/#{g.BOARD}/res/#{g.THREAD_ID}.json", {
|
|
||||||
onload: ->
|
|
||||||
return if @status isnt 200
|
|
||||||
Updater.lastModified = @getResponseHeader 'Last-Modified'
|
|
||||||
}, type: 'head'
|
|
||||||
|
|
||||||
for input in $$ 'input', dialog
|
for input in $$ 'input', dialog
|
||||||
if input.type is 'checkbox'
|
if input.type is 'checkbox'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user