diff --git a/4chan_x.user.js b/4chan_x.user.js index abdc3efbe..1164e6cdf 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2182,7 +2182,7 @@ }, parse: function(req, id, threadID) { var body, html, op, qp, reply, _i, _len, _ref; - if (!(qp = ui.el || ui.el.innerHTML === ("Loading " + id + "..."))) { + if (!(qp = ui.el && qp.innerHTML === ("Loading " + id + "..."))) { return; } if (req.status !== 200) { diff --git a/script.coffee b/script.coffee index 929136b2d..a00936844 100644 --- a/script.coffee +++ b/script.coffee @@ -1684,7 +1684,7 @@ quotePreview = $.removeClass el, 'qphl' if el = d.getElementById @hash[1..] ui.hoverend() parse: (req, id, threadID) -> - return unless qp = ui.el or ui.el.innerHTML is "Loading #{id}..." + return unless qp = ui.el and qp.innerHTML is "Loading #{id}..." if req.status isnt 200 qp.innerHTML = "#{req.status} #{req.statusText}"