« get me outta code hell

client: report unhandled promise rejections in search worker - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-18 20:32:01 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:56 -0300
commit73a79bcdcb8c590c3e670f32960c26a8829801f8 (patch)
tree8924dc09534ba8dc5a1d3e3a08e37c3cf74192e3 /src
parentd328d7a7969256cabe160fb8a4bffc7fafa3ae25 (diff)
client: report unhandled promise rejections in search worker
Diffstat (limited to 'src')
-rw-r--r--src/static/js/search-worker.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js
index 532dbb71..e79b5d66 100644
--- a/src/static/js/search-worker.js
+++ b/src/static/js/search-worker.js
@@ -27,6 +27,7 @@ let indexes = null;
 
 onmessage = handleWindowMessage;
 onerror = handleRuntimeError;
+onunhandledrejection = handleRuntimeError;
 postStatus('alive');
 
 Promise.all([