Global page error

edited June 2016 in Enyo 2.7
Greetings

I have a custom lib to use in various apps that inject a global page script to catch errors.
In the 2.5 version, I had something this:

enyo.ready(function () { window.onerror = function(message, source, lineno, colno, error) { //stuff }; });

What is the better way to do this in the new version? Don’t forget that it is supposed to be done in a custom lib.

Comments

Sign In or Register to comment.