Remove unnecessary debug code

This commit is contained in:
Zixaphir 2014-03-06 11:10:08 -07:00
parent a9e4559f1e
commit 61942d9e2d
3 changed files with 3 additions and 12 deletions

View File

@ -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>]"
}));

View File

@ -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>]"
}));

View File

@ -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.