Reset the QR status on connection error.
This commit is contained in:
parent
d636d27dfd
commit
d235346496
@ -2058,6 +2058,7 @@
|
|||||||
return QR.response(this.response);
|
return QR.response(this.response);
|
||||||
},
|
},
|
||||||
onerror: function() {
|
onerror: function() {
|
||||||
|
QR.status();
|
||||||
return QR.error($.el('a', {
|
return QR.error($.el('a', {
|
||||||
href: '//www.4chan.org/banned',
|
href: '//www.4chan.org/banned',
|
||||||
target: '_blank',
|
target: '_blank',
|
||||||
|
|||||||
@ -1556,6 +1556,7 @@ QR =
|
|||||||
onerror: ->
|
onerror: ->
|
||||||
# Connection error, or
|
# Connection error, or
|
||||||
# CORS disabled error on www.4chan.org/banned
|
# CORS disabled error on www.4chan.org/banned
|
||||||
|
QR.status()
|
||||||
QR.error $.el 'a',
|
QR.error $.el 'a',
|
||||||
href: '//www.4chan.org/banned'
|
href: '//www.4chan.org/banned'
|
||||||
target: '_blank'
|
target: '_blank'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user