Browse Source

Platform: don't allow emscripten to hide the oopsies.

pull/272/head
Vladimír Vondruš 8 years ago
parent
commit
e3b60abf64
  1. 5
      src/Magnum/Platform/EmscriptenApplication.js

5
src/Magnum/Platform/EmscriptenApplication.js

@ -50,7 +50,10 @@ var Module = {
setStatus: function(message) { setStatus: function(message) {
var status = document.getElementById('status'); var status = document.getElementById('status');
if(status) status.innerHTML = message; /* Emscripten calls setStatus("") after a timeout even if the app
aborts. That would erase the crash message, so don't allow that */
if(status && status.innerHTML != "Oops :(")
status.innerHTML = message;
}, },
setStatusDescription: function(message) { setStatusDescription: function(message) {

Loading…
Cancel
Save