Remove hardcoded API URL from ExpandThread.
This commit is contained in:
parent
bfb89e3e39
commit
8cfd16f0a4
@ -54,7 +54,7 @@ ExpandThread =
|
||||
expand: (thread, a) ->
|
||||
ExpandThread.statuses[thread] = status = {}
|
||||
a.textContent = Build.summaryText '...', a.textContent.match(/\d+/g)...
|
||||
status.req = $.cache "#{location.protocol}//a.4cdn.org/#{thread.board}/thread/#{thread}.json", ->
|
||||
status.req = $.cache Site.urls.threadJSON({boardID: thread.board.ID, threadID: thread.ID}), ->
|
||||
return if @ isnt status.req # aborted
|
||||
delete status.req
|
||||
ExpandThread.parse @, thread, a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user