Remove unnecessary debug code
This commit is contained in:
parent
a9e4559f1e
commit
61942d9e2d
@ -6573,14 +6573,11 @@
|
||||
responseType: 'document',
|
||||
withCredentials: true,
|
||||
onload: QR.response,
|
||||
onerror: function(err, url, line) {
|
||||
onerror: function() {
|
||||
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>]"
|
||||
}));
|
||||
|
||||
@ -6616,14 +6616,11 @@
|
||||
responseType: 'document',
|
||||
withCredentials: true,
|
||||
onload: QR.response,
|
||||
onerror: function(err, url, line) {
|
||||
onerror: function() {
|
||||
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>]"
|
||||
}));
|
||||
|
||||
@ -674,15 +674,12 @@ QR =
|
||||
responseType: 'document'
|
||||
withCredentials: true
|
||||
onload: QR.response
|
||||
onerror: (err, url, line) ->
|
||||
onerror: ->
|
||||
# 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