mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
ignore easymde errors
it randomly throws when clicking inside the preview pane
This commit is contained in:
parent
64ad585318
commit
879e83e24f
|
@ -157,6 +157,10 @@ catch (ex) {
|
|||
}
|
||||
var crashed = false, ignexd = {}, evalex_fatal = false;
|
||||
function vis_exh(msg, url, lineNo, columnNo, error) {
|
||||
var ekey = url + '\n' + lineNo + '\n' + msg;
|
||||
if (ignexd[ekey] || crashed)
|
||||
return;
|
||||
|
||||
msg = String(msg);
|
||||
url = String(url);
|
||||
|
||||
|
@ -175,9 +179,8 @@ function vis_exh(msg, url, lineNo, columnNo, error) {
|
|||
if (IE && url.indexOf('prism.js') + 1)
|
||||
return;
|
||||
|
||||
var ekey = url + '\n' + lineNo + '\n' + msg;
|
||||
if (ignexd[ekey] || crashed)
|
||||
return;
|
||||
if (url.indexOf('easymde.js') + 1)
|
||||
return; // clicking the preview pane
|
||||
|
||||
if (url.indexOf('deps/marked.js') + 1 && !window.WebAssembly)
|
||||
return; // ff<52
|
||||
|
|
Loading…
Reference in a new issue