diff --git a/builds/4chan-X.js b/builds/4chan-X.js index a2edb49c7..cce877056 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -10433,29 +10433,9 @@ }, errors: [], logError: function(data) { - if (!Main.errors.length) { - $.on(window, 'unload', Main.postErrors); - } c.error(data.message, data.error.stack); return Main.errors.push(data); }, - postErrors: function() { - var errors; - - errors = Main.errors.map(function(d) { - return d.message + ' ' + d.error.stack; - }); - return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, { - sync: true, - form: $.formData({ - n: "4chan X v" + g.VERSION, - t: 'userjs', - ua: window.navigator.userAgent, - url: window.location.href, - e: errors.join('\n') - }) - }); - }, isThisPageLegit: function() { var _ref; diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b74cd861c..582450887 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -10444,29 +10444,9 @@ }, errors: [], logError: function(data) { - if (!Main.errors.length) { - $.on(window, 'unload', Main.postErrors); - } c.error(data.message, data.error.stack); return Main.errors.push(data); }, - postErrors: function() { - var errors; - - errors = Main.errors.map(function(d) { - return d.message + ' ' + d.error.stack; - }); - return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, { - sync: true, - form: $.formData({ - n: "4chan X v" + g.VERSION, - t: 'userscript', - ua: window.navigator.userAgent, - url: window.location.href, - e: errors.join('\n') - }) - }); - }, isThisPageLegit: function() { var _ref; diff --git a/builds/crx/script.js b/builds/crx/script.js index c9255cc53..b6ccff738 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -10426,29 +10426,9 @@ }, errors: [], logError: function(data) { - if (!Main.errors.length) { - $.on(window, 'unload', Main.postErrors); - } c.error(data.message, data.error.stack); return Main.errors.push(data); }, - postErrors: function() { - var errors; - - errors = Main.errors.map(function(d) { - return d.message + ' ' + d.error.stack; - }); - return $.ajax('http://seaweedchan.github.io/4chan-x/errors', {}, { - sync: true, - form: $.formData({ - n: "4chan X v" + g.VERSION, - t: 'crx', - ua: window.navigator.userAgent, - url: window.location.href, - e: errors.join('\n') - }) - }); - }, isThisPageLegit: function() { var _ref; diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 0cfd6544a..d23b9483e 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -352,22 +352,9 @@ Main = errors: [] logError: (data) -> - unless Main.errors.length - $.on window, 'unload', Main.postErrors c.error data.message, data.error.stack Main.errors.push data - postErrors: -> - errors = Main.errors.map (d) -> d.message + ' ' + d.error.stack - $.ajax '<%= meta.page %>errors', {}, - sync: true - form: $.formData - n: "<%= meta.name %> v#{g.VERSION}" - t: '<%= type %>' - ua: window.navigator.userAgent - url: window.location.href - e: errors.join '\n' - isThisPageLegit: -> # 404 error page or similar. unless 'thisPageIsLegit' of Main