diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 1282cd6e..4c90f959 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -27,21 +27,20 @@ function vis_exh(msg, url, lineNo, columnNo, error) { window.onerror = undefined; window['vis_exh'] = null; - var html = ['
please send me a screenshot arigathanks gozaimuch: ed/irc.rizon.net
or ed#2644
(and if you can, press F12 and include the "Console" tab in the screenshot too)
', - esc(String(msg)), '
', esc(url + ' @' + lineNo + ':' + columnNo), '
']; + var html = ['try to reset copyparty settings if you are stuck here
please send me a screenshot arigathanks gozaimuch: ed/irc.rizon.net
or ed#2644
(and if you can, press F12 and include the "Console" tab in the screenshot too)
',
+ esc(url + ' @' + lineNo + ':' + columnNo), '
' + esc(String(msg)) + '
if you are stuck here, try to reset copyparty settings
'); document.body.innerHTML = html.join('\n'); var s = mknod('style'); - s.innerHTML = 'body{background:#333;color:#ddd;font-family:sans-serif;font-size:0.8em;padding:0 1em 1em 1em} code{color:#bf7;background:#222;padding:.1em;margin:.2em;font-size:1.1em;font-family:monospace,monospace} *{line-height:1.5em}'; + s.innerHTML = 'body{background:#333;color:#ddd;font-family:sans-serif;font-size:0.8em;padding:0 1em 1em 1em} h1{margin:.5em 1em 0 0;padding:0} h3{border-top:1px solid #999;margin:0} code{color:#bf7;background:#222;padding:.1em;margin:.2em;font-size:1.1em;font-family:monospace,monospace} a{text-decoration:underline} *{line-height:1.5em}'; document.head.appendChild(s); throw 'fatal_err';