Global page error

edited June 2016 in Enyo 2.7

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.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!