Skip to content

Commit

Permalink
ignore easymde errors
Browse files Browse the repository at this point in the history
it randomly throws when clicking inside the preview pane
  • Loading branch information
9001 committed Feb 14, 2024
1 parent 64ad585 commit 879e83e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions copyparty/web/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit 879e83e

Please sign in to comment.