From d23534649675ac96df63bd8a0e324ea986f6540a Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 3 Jun 2012 07:33:35 +0200 Subject: [PATCH] Reset the QR status on connection error. --- 4chan_x.user.js | 1 + script.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 085b7eeb0..dd4bdec98 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2058,6 +2058,7 @@ return QR.response(this.response); }, onerror: function() { + QR.status(); return QR.error($.el('a', { href: '//www.4chan.org/banned', target: '_blank', diff --git a/script.coffee b/script.coffee index 36f89ee7b..cb84a2add 100644 --- a/script.coffee +++ b/script.coffee @@ -1556,6 +1556,7 @@ QR = onerror: -> # Connection error, or # CORS disabled error on www.4chan.org/banned + QR.status() QR.error $.el 'a', href: '//www.4chan.org/banned' target: '_blank'