mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Commented out own error-handler for now
This commit is contained in:
@@ -156,7 +156,7 @@ window.zoff = {
|
|||||||
disable_debug: disable_debug
|
disable_debug: disable_debug
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!Helper.mobilecheck() && (window.location.host != "localhost" && window.location.host != "client.localhost")) {
|
/*if(!Helper.mobilecheck() && (window.location.host != "localhost" && window.location.host != "client.localhost")) {
|
||||||
window.onerror = function(e, source, lineno, colno, error) {
|
window.onerror = function(e, source, lineno, colno, error) {
|
||||||
if(e == "Script error." || e.toString().toLowerCase().indexOf("pagespeed") > -1) return true;
|
if(e == "Script error." || e.toString().toLowerCase().indexOf("pagespeed") > -1) return true;
|
||||||
Helper.logs.unshift({log: e.toString().replace(/(\r\n|\n|\r)/gm,""), date: new Date(), lineno: lineno, colno: colno, source:source});
|
Helper.logs.unshift({log: e.toString().replace(/(\r\n|\n|\r)/gm,""), date: new Date(), lineno: lineno, colno: colno, source:source});
|
||||||
@@ -199,7 +199,7 @@ if(!Helper.mobilecheck() && (window.location.host != "localhost" && window.locat
|
|||||||
//console.error(e.originalEvent.error);
|
//console.error(e.originalEvent.error);
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
}
|
}*/
|
||||||
|
|
||||||
window.addEventListener("DOMContentLoaded", function() {
|
window.addEventListener("DOMContentLoaded", function() {
|
||||||
if(!localStorage.getItem("VERSION") || parseInt(localStorage.getItem("VERSION")) != VERSION) {
|
if(!localStorage.getItem("VERSION") || parseInt(localStorage.getItem("VERSION")) != VERSION) {
|
||||||
|
|||||||
Reference in New Issue
Block a user