diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index f997199e..131588cc 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2580,7 +2580,8 @@ var thegrid = (function () { ebi('bdoc').style.display = 'none'; clmod(ebi('wrap'), 'doc'); qsr('#docname'); - treectl.textmode(false); + if (window['treectl']) + treectl.textmode(false); }; r.setdirty = function () { diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 097b8bfd..be0f5d7d 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -172,7 +172,6 @@ function vis_exh(msg, url, lineNo, columnNo, error) { catch (e) { document.body.innerHTML = html.join('\n'); } - throw 'fatal_err'; } function ignex(all) { var o = ebi('exbox');