diff --git a/README.md b/README.md index 22bb14c94..dc0e1f662 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/public/app/services/glob.js b/src/public/app/services/glob.js index 997a2ac34..f523a677e 100644 --- a/src/public/app/services/glob.js +++ b/src/public/app/services/glob.js @@ -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 += [