diff options
Diffstat (limited to 'src/shell.html')
-rw-r--r-- | src/shell.html | 7 |
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> |