Sonarr/NzbDrone.Web/_backboneApp/errorHandler.js

11 lines
353 B
JavaScript
Raw Normal View History

2013-01-23 01:23:27 +00:00
/// <reference path="JsLibraries/jquery.js" />
window.onerror = function (msg, url, line) {
alert("Error: " + msg + "\nurl: " + url + "\nline #: " + line);
var suppressErrorAlert = true;
// If you return true, then error alerts (like in older versions of
// Internet Explorer) will be suppressed.
return suppressErrorAlert;
};