From 99ac324fbd3f5868a11325569e1e13956966d373 Mon Sep 17 00:00:00 2001
From: ed
Date: Thu, 2 Sep 2021 19:06:08 +0200
Subject: [PATCH] tweaks
---
copyparty/web/util.js | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/copyparty/web/util.js b/copyparty/web/util.js
index 48fbdfe7..f8235d5a 100644
--- a/copyparty/web/util.js
+++ b/copyparty/web/util.js
@@ -37,7 +37,7 @@ try {
var hook = function (t) {
var orig = console[t].bind(console),
cfun = function () {
- console.hist.push(Date.now() + ' ' + t + ' ' + Array.from(arguments).join(', '));
+ console.hist.push(Date.now() + ' ' + t + ': ' + Array.from(arguments).join(', '));
if (console.hist.length > 100)
console.hist = console.hist.slice(50);
@@ -69,14 +69,13 @@ function vis_exh(msg, url, lineNo, columnNo, error) {
crashed = true;
window.onerror = undefined;
- var con = is_touch ? '' : '
(and if you can, press F12 and include the "Console" tab in the screenshot too)',
- html = [
- 'you hit a bug!
',
- '
try to reset copyparty settings if you are stuck here, or ignore this / ignore all
', - 'please send me a screenshot arigathanks gozaimuch: ed/irc.rizon.net
or ed#2644
' + con + '
' + esc(url + ' @' + lineNo + ':' + columnNo), '
' + esc(String(msg)) + '
UA: ' + esc(navigator.userAgent + '') - ]; + var html = [ + '
try to reset copyparty settings if you are stuck here, or ignore this / ignore all
', + 'please send me a screenshot arigathanks gozaimuch: ed/irc.rizon.net
or ed#2644
' + esc(url + ' @' + lineNo + ':' + columnNo), '
' + esc(String(msg)) + '
UA: ' + esc(navigator.userAgent + '') + ]; try { var ua = '', @@ -118,7 +117,7 @@ function vis_exh(msg, url, lineNo, columnNo, error) { if (console.hist.length) { html.push('
console: