Try to get some better errors out of QR.req.onerror
This commit is contained in:
parent
ed28e05f72
commit
3d0dd62556
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -411,9 +411,10 @@ th {
|
||||
position: fixed;
|
||||
display: <%= flex %>;
|
||||
top: 0;
|
||||
padding: 1px;
|
||||
z-index: 16;
|
||||
<%= flex %>-direction: row;
|
||||
max-height: 1.3em;
|
||||
max-height: 1.4em;
|
||||
overflow: visible;
|
||||
}
|
||||
.shortcut {
|
||||
@ -737,7 +738,7 @@ th {
|
||||
position: fixed;
|
||||
}
|
||||
.fourchan-banner-at-sidebar-top .boardBanner {
|
||||
top: 16px;
|
||||
top: 18px;
|
||||
}
|
||||
.fourchan-banner-at-sidebar-bottom .boardBanner {
|
||||
bottom: 270px;
|
||||
|
||||
@ -615,13 +615,15 @@ QR =
|
||||
responseType: 'document'
|
||||
withCredentials: true
|
||||
onload: QR.response
|
||||
onerror: ->
|
||||
# Connection error, or
|
||||
# www.4chan.org/banned
|
||||
onerror: (err, url, line) ->
|
||||
# Connection error, or www.4chan.org/banned
|
||||
delete QR.req
|
||||
post.unlock()
|
||||
QR.cooldown.auto = false
|
||||
QR.status()
|
||||
console.log err
|
||||
console.log url
|
||||
console.log line
|
||||
QR.error $.el 'span',
|
||||
innerHTML: """
|
||||
Connection error. You may have been <a href=//www.4chan.org/banned target=_blank>banned</a>.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user