mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
ignore md plugin errors
This commit is contained in:
parent
27ca54d138
commit
909c7bee3e
|
@ -85,15 +85,18 @@ catch (ex) {
|
||||||
}
|
}
|
||||||
var crashed = false, ignexd = {};
|
var crashed = false, ignexd = {};
|
||||||
function vis_exh(msg, url, lineNo, columnNo, error) {
|
function vis_exh(msg, url, lineNo, columnNo, error) {
|
||||||
if ((msg + '').indexOf('ResizeObserver') !== -1)
|
if ((msg + '').indexOf('ResizeObserver') + 1)
|
||||||
return; // chrome issue 809574 (benign, from <video>)
|
return; // chrome issue 809574 (benign, from <video>)
|
||||||
|
|
||||||
if ((msg + '').indexOf('l2d.js') !== -1)
|
if ((msg + '').indexOf('l2d.js') + 1)
|
||||||
return; // `t` undefined in tapEvent -> hitTestSimpleCustom
|
return; // `t` undefined in tapEvent -> hitTestSimpleCustom
|
||||||
|
|
||||||
if (!/\.js($|\?)/.exec('' + url))
|
if (!/\.js($|\?)/.exec('' + url))
|
||||||
return; // chrome debugger
|
return; // chrome debugger
|
||||||
|
|
||||||
|
if ((url + '').indexOf(' > eval') + 1)
|
||||||
|
return; // md timer
|
||||||
|
|
||||||
var ekey = url + '\n' + lineNo + '\n' + msg;
|
var ekey = url + '\n' + lineNo + '\n' + msg;
|
||||||
if (ignexd[ekey] || crashed)
|
if (ignexd[ekey] || crashed)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue