This commit is contained in:
Jordan Bates 2013-05-13 22:08:14 -07:00
commit 0148aa32d1
4 changed files with 0 additions and 73 deletions

View File

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

View File

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

View File

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

View File

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