Show error message on error in JS

This commit is contained in:
RunasSudo 2020-12-28 01:14:43 +11:00
parent ec75a61406
commit 467612541f
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}