From 467612541f3090489c16dd6e22306ab554eb8e14 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 28 Dec 2020 01:14:43 +1100 Subject: [PATCH] Show error message on error in JS --- html/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/html/index.js b/html/index.js index d332016..18732ee 100644 --- a/html/index.js +++ b/html/index.js @@ -288,6 +288,7 @@ async function clickCount() { } worker.onerror = function(evt) { + window.alert('An unknown error occurred while counting the votes. More details may be available in the browser\'s developer console.'); throw evt; }