From 236c4c8a0cb2a413fd228fae0723ca8dcc1737ff Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 11 Sep 2012 20:06:56 +0200 Subject: [PATCH] 304 is suddenly treated as an error by Opera. Use onloadend instead of onload. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 749ac166f..503d19404 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3074,7 +3074,7 @@ } url = "//api.4chan.org/" + g.BOARD + "/res/" + g.THREAD_ID + ".json"; return Updater.request = $.ajax(url, { - onload: Updater.cb.load + onloadend: Updater.cb.load }, { headers: { 'If-Modified-Since': Updater.lastModified diff --git a/script.coffee b/script.coffee index 39a89d553..0537e23d0 100644 --- a/script.coffee +++ b/script.coffee @@ -2456,7 +2456,7 @@ Updater = # XXX is fooling the cache still necessary? # url = "//api.4chan.org/#{g.BOARD}/res/#{g.THREAD_ID}.json?{Date.now()}" url = "//api.4chan.org/#{g.BOARD}/res/#{g.THREAD_ID}.json" - Updater.request = $.ajax url, onload: Updater.cb.load, + Updater.request = $.ajax url, onloadend: Updater.cb.load, headers: 'If-Modified-Since': Updater.lastModified Watcher =