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