Sha256: 0047ce41150546b10ced67b352b52a0002007c17dae1ae9b6804e83ce860b0e4
Contents?: true
Size: 681 Bytes
Versions: 7
Compression:
Stored size: 681 Bytes
Contents
(function(){ var lastReport = null; window.onerror = function(message, url, line, column, errorObj) { // never bother reporting more than once a minute if(lastReport && new Date() - lastReport < 1000 * 60) { return; } lastReport = new Date(); var err = { message: message, url: url, line: line, column: column, window_location: window.location && (window.location + "") }; if(errorObj && errorObj.stack) { err.stacktrace = errorObj.stack; } $.ajax("<%= Logster.config.subdirectory || '/logs' %>" + "/report_js_error",{ data: err, type: "POST", cache: false }); }; })();
Version data entries
7 entries across 7 versions & 1 rubygems