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
commit bbc038f254
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# TriliumNext Notes
![Docker Pulls](https://img.shields.io/docker/pulls/triliumnext/notes) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/triliumnext/notes/total)
[English](./README.md) | [Chinese](./README-ZH_CN.md) | [Russian](./README.ru.md) | [Japanese](./README.ja.md) | [Italian](./README.it.md) | [Spanish](./README.es.md)
TriliumNext Notes is an open-source, cross-platform hierarchical note taking application with focus on building large personal knowledge bases.

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 += [