From 8801be953ecab0bf2232f9d04ea8236be578979b Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Fri, 15 Mar 2013 19:54:06 -0700 Subject: [PATCH] Another fault on my part. --- 4chan_x.user.js | 2 +- src/features.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 76f8e00fe..0df2b8613 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -5239,7 +5239,7 @@ return; } status = req.status; - if ([200, 304].contains(status)) { + if (![200, 304].contains(status)) { a.textContent = "Error " + req.statusText + " (" + status + ")"; $.off(a, 'click', ExpandThread.cb.toggle); return; diff --git a/src/features.coffee b/src/features.coffee index e19fe2821..f5245d461 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -3479,7 +3479,7 @@ ExpandThread = parse: (req, thread, a) -> return if a.textContent[0] is '+' {status} = req - if [200, 304].contains status + unless [200, 304].contains status a.textContent = "Error #{req.statusText} (#{status})" $.off a, 'click', ExpandThread.cb.toggle return