Browse Source

Platform: show Emscripten windowless app log only after it loads.

Otherwise it obscures the information about downloading.
pull/218/head
Vladimír Vondruš 9 years ago
parent
commit
5f3ff712bc
  1. 3
      src/Magnum/Platform/WindowlessEmscriptenApplication.js

3
src/Magnum/Platform/WindowlessEmscriptenApplication.js

@ -37,6 +37,7 @@ var Module = {
} else { } else {
Module.setStatus(''); Module.setStatus('');
Module.setStatusDescription(''); Module.setStatusDescription('');
document.getElementById('log').style.display = 'block';
} }
} }
}; };
@ -57,6 +58,8 @@ for(var i = 0; i != args.length; ++i) {
Module.setStatus('Downloading...'); Module.setStatus('Downloading...');
document.getElementById('log').style.display = 'none';
if(Module.canvas) Module.canvas.addEventListener('contextmenu', function(event) { if(Module.canvas) Module.canvas.addEventListener('contextmenu', function(event) {
event.preventDefault(); event.preventDefault();
}, true); }, true);

Loading…
Cancel
Save