aboutsummaryrefslogtreecommitdiff
path: root/src/shell.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.html')
-rw-r--r--src/shell.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shell.html b/src/shell.html
index 226f12b9..1e213024 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -1273,6 +1273,13 @@
}
};
Module.setStatus('Downloading...');
+ window.onerror = function() {
+ Module.setStatus('Exception thrown, see JavaScript console');
+ spinnerElement.style.display = 'none';
+ Module.setStatus = function(text) {
+ if (text) Module.printErr('[post-exception status] ' + text);
+ };
+ };
</script>
{{{ SCRIPT }}}
</body>