Merge remote-tracking branch 'origin/develop' into feature/syntax_highlight

This commit is contained in:
Elian Doran
2024-10-31 17:48:49 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -50,11 +50,11 @@ function setupGlobs() {
};
window.addEventListener("unhandledrejection", (e) => {
const string = e.reason.message.toLowerCase();
const string = e?.reason?.message?.toLowerCase();
let message = "Uncaught error: ";
if (string.includes("script error")) {
if (string?.includes("script error")) {
message += 'No details available';
} else {
message += [