add a link to clear settings on the js crash page

This commit is contained in:
ed 2021-07-13 00:33:46 +02:00
parent 849c1dc848
commit 39c7ef305f

View file

@ -37,6 +37,7 @@ function vis_exh(msg, url, lineNo, columnNo, error) {
html.push('<h2>' + find[a] + '</h2>' +
esc(String(error[find[a]])).replace(/\n/g, '<br />\n'));
}
html.push('<p style="border-top:1px solid #999;margin-top:1.5em;font-size:1.4em">if you are stuck here, try to <a href="#" onclick="localStorage.clear();location.reload();">reset copyparty settings</a></p>');
document.body.innerHTML = html.join('\n');
var s = mknod('style');