Show error message on error in JS
This commit is contained in:
parent
ec75a61406
commit
467612541f
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user