Delete JsError action

This commit is contained in:
RainLoop Team 2019-08-01 03:13:44 +03:00
parent 66b23747c7
commit 1b2306c7b0
4 changed files with 1 additions and 106 deletions

View file

@ -55,33 +55,6 @@ class AbstractApp extends AbstractBoot {
this.iframe = $('<iframe class="internal-hiddden" />').appendTo('body');
$win.on('error', (event) => {
if (
event &&
event.originalEvent &&
event.originalEvent.message &&
-1 ===
inArray(event.originalEvent.message, ['Script error.', 'Uncaught Error: Error calling method on NPObject.'])
) {
const time = timestamp();
if (this.lastErrorTime >= time) {
return;
}
this.lastErrorTime = time;
Remote.jsError(
noop,
event.originalEvent.message,
event.originalEvent.filename,
event.originalEvent.lineno,
window.location && window.location.toString ? window.location.toString() : '',
$html.attr('class'),
microtime() - startMicrotime
);
}
});
$win.on('resize', () => {
Events.pub('window.resize');
});