diff --git a/copyparty/web/util.js b/copyparty/web/util.js
index 18f4539e..a1d7d1a2 100644
--- a/copyparty/web/util.js
+++ b/copyparty/web/util.js
@@ -40,16 +40,36 @@ 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 = ['
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)) + '
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 + '')
+ ];
+
+ try {
+ var ua = '',
+ ad = navigator.userAgentData,
+ adb = ad.brands;
+
+ for (var a = 0; a < adb.length; a++)
+ if (adb[a].brand.indexOf('Not;A') < 0)
+ ua += adb[a].brand + '/' + adb[a].version + ', ';
+ ua += ad.platform;
+
+ html.push('
UAD: ' + esc(ua.slice(0, 100)));
+ }
+ catch (e) { }
+ html.push('
' + find[a] + ':
' +
+ esc(String(error[find[a]])).replace(/\n/g, '
\n') + '
');
for (var a = 0; a < lsk.length; a++)
html.push(' ' + esc(lsk[a]) + ' ' + esc(ls[lsk[a]]) + '
');
+ html.push('