on-error.txt

 window.onerror = function (error) {
    parent.document.body.getElementsByTagName("notification-bubbles")[0].add(error, 'syntax-error');
}