304 is suddenly treated as an error by Opera. Use onloadend instead of onload.
This commit is contained in:
parent
bbcb738b41
commit
236c4c8a0c
@ -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
|
||||
|
||||
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user