From 7db304150488db11f5468e35c86de0a52ef25931 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 23 Mar 2019 23:08:54 -0700 Subject: [PATCH] onload -> onloadend and remove hardcoded JSON URL in ImageCommon --- src/Images/ImageCommon.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Images/ImageCommon.coffee b/src/Images/ImageCommon.coffee index eec68dafa..b7e0b7242 100644 --- a/src/Images/ImageCommon.coffee +++ b/src/Images/ImageCommon.coffee @@ -54,7 +54,7 @@ ImageCommon = clearTimeout timeoutID if delay? cb URL - $.ajax "#{location.protocol}//a.4cdn.org/#{post.board}/thread/#{post.thread}.json", onload: -> + $.ajax Site.urls.threadJSON({boardID: post.boardID, threadID: post.threadID}), onloadend: -> post.kill !post.isClone if @status is 404 return redirect() if @status isnt 200 for postObj in @response.posts