Force thread watcher to use If-Modified-Since even if page isn't cached; add timeout.
This commit is contained in:
parent
cd23973d99
commit
a1708d74ea
@ -198,6 +198,9 @@ ThreadWatcher =
|
||||
req = $.ajax "//a.4cdn.org/#{boardID}/thread/#{threadID}.json",
|
||||
onloadend: ->
|
||||
ThreadWatcher.parseStatus.call @, thread
|
||||
timeout: $.MINUTE
|
||||
,
|
||||
whenModified: 'ThreadWatcher'
|
||||
ThreadWatcher.requests.push req
|
||||
|
||||
parseStatus: ({boardID, threadID, data}) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user