304 is suddenly treated as an error by Opera. Use onloadend instead of onload.

This commit is contained in:
Nicolas Stepien 2012-09-11 20:06:56 +02:00
parent bbcb738b41
commit 236c4c8a0c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 =