Revert network tweak. It breaks updating if you reopen a page that doesn't have the latest posts cached.

This commit is contained in:
Nicolas Stepien 2012-09-08 01:06:51 +02:00
parent f3d0b83728
commit 71b89622d9
2 changed files with 0 additions and 15 deletions

View File

@ -2850,16 +2850,6 @@
this.thread = $.id("t" + g.THREAD_ID);
this.unsuccessfulFetchCount = 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);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
input = _ref[_i];

View File

@ -2279,11 +2279,6 @@ Updater =
@unsuccessfulFetchCount = 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
if input.type is 'checkbox'