Try to get some better errors out of QR.req.onerror
Conflicts: builds/4chan-X.user.js builds/crx/script.js src/General/css/layout.css
This commit is contained in:
parent
3a61ecafff
commit
a993b440dc
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.3.2 - 2014-01-18
|
||||
* 4chan X - Version 1.3.2 - 2014-01-19
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.3.2 - 2014-01-18
|
||||
* 4chan X - Version 1.3.2 - 2014-01-19
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -6212,11 +6212,14 @@
|
||||
responseType: 'document',
|
||||
withCredentials: true,
|
||||
onload: QR.response,
|
||||
onerror: function() {
|
||||
onerror: function(err, url, line) {
|
||||
delete QR.req;
|
||||
post.unlock();
|
||||
QR.cooldown.auto = false;
|
||||
QR.status();
|
||||
console.log(err);
|
||||
console.log(url);
|
||||
console.log(line);
|
||||
return QR.error($.el('span', {
|
||||
innerHTML: "4chan X encountered an error while posting. \n[<a href=\"//4chan.org/banned\" target=_blank>Banned?</a>] [<a href=\"https://github.com/seaweedchan/4chan-x/wiki/Frequently-Asked-Questions#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean\" target=_blank>More info</a>]"
|
||||
}));
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Generated by CoffeeScript
|
||||
/*
|
||||
* 4chan X - Version 1.3.2 - 2014-01-18
|
||||
* 4chan X - Version 1.3.2 - 2014-01-19
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -6203,11 +6203,14 @@
|
||||
responseType: 'document',
|
||||
withCredentials: true,
|
||||
onload: QR.response,
|
||||
onerror: function() {
|
||||
onerror: function(err, url, line) {
|
||||
delete QR.req;
|
||||
post.unlock();
|
||||
QR.cooldown.auto = false;
|
||||
QR.status();
|
||||
console.log(err);
|
||||
console.log(url);
|
||||
console.log(line);
|
||||
return QR.error($.el('span', {
|
||||
innerHTML: "4chan X encountered an error while posting. \n[<a href=\"//4chan.org/banned\" target=_blank>Banned?</a>] [<a href=\"https://github.com/seaweedchan/4chan-x/wiki/Frequently-Asked-Questions#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean\" target=_blank>More info</a>]"
|
||||
}));
|
||||
|
||||
@ -590,13 +590,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: """
|
||||
4chan X encountered an error while posting.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user