From b84800786510465de5ae790938adce7333d294fa Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 13 Jan 2015 12:13:32 -0700 Subject: [PATCH] Honestly not worth pursuing errors during nav on QR.status --- builds/appchan-x.user.js | 4 ++-- builds/crx/script.js | 4 ++-- src/Posting/QR.coffee | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 6c70e4e6d..29407b5cb 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -9623,12 +9623,12 @@ return QR.notifications = []; }, status: function() { - var disabled, status, thread, value; + var disabled, status, thread, value, _ref; if (!QR.nodes) { return; } thread = QR.posts[0].thread; - if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { + if (thread !== 'new' && ((_ref = g.threads["" + g.BOARD + "." + thread]) != null ? _ref.isDead : void 0)) { value = 'Dead'; disabled = true; QR.cooldown.auto = false; diff --git a/builds/crx/script.js b/builds/crx/script.js index 04284c2d3..4272155b3 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9666,12 +9666,12 @@ return QR.notifications = []; }, status: function() { - var disabled, status, thread, value; + var disabled, status, thread, value, _ref; if (!QR.nodes) { return; } thread = QR.posts[0].thread; - if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { + if (thread !== 'new' && ((_ref = g.threads["" + g.BOARD + "." + thread]) != null ? _ref.isDead : void 0)) { value = 'Dead'; disabled = true; QR.cooldown.auto = false; diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 1ae45e1f7..95be8578a 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -197,7 +197,7 @@ QR = status: -> return unless QR.nodes {thread} = QR.posts[0] - if thread isnt 'new' and g.threads["#{g.BOARD}.#{thread}"].isDead + if thread isnt 'new' and g.threads["#{g.BOARD}.#{thread}"]?.isDead value = 'Dead' disabled = true QR.cooldown.auto = false