From b10e2d9ec4e6ce189b392db8c6dd741d1f3a942e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 31 Oct 2024 14:00:14 +0200 Subject: [PATCH 1/2] Update README to add a few shields --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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. From f8df3a6933914c13f4bcec2d82b81deb2a6af846 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 31 Oct 2024 17:48:33 +0200 Subject: [PATCH 2/2] client: Fix crash for some unhandled rejections --- src/public/app/services/glob.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 += [