From 7c9d28a161fd9018e930d5ea1a7c153771ba02cc Mon Sep 17 00:00:00 2001 From: bp2008 Date: Fri, 11 Oct 2024 12:48:26 -0600 Subject: [PATCH] Version 277: * Ceased using `??` JavaScript syntax which was introduced in a recent UI3 release (should restore compatibility with some older web browsers). --- ui3.htm | 4 +++- ui3/ui3.js | 23 +++++++++++++++++------ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/ui3.htm b/ui3.htm index e0b4f8f..15575b1 100644 --- a/ui3.htm +++ b/ui3.htm @@ -50,6 +50,8 @@ var biVersionStr = "unknown"; if (typeof bi_version != "undefined") biVersionStr = bi_version; + if (!url) + url = ""; url = url.replace(/\/\/.*?\//, '//censored_hostname/'); var errStr = "An unexpected error has occurred in " + location.pathname + " (v " + uiVersionStr + " / " + biVersionStr + "). A full refresh may solve the problem (CTRL + F5). If you wish to report the error, please SCREENSHOT the browser now.\n\n" + msg + "\nat " + url + " [" + line + ":" + charIdx + "]\n" + navigator.userAgent; @@ -88,7 +90,7 @@ };