From 5f3ff712bca822984842497679cee50b5dada166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 4 Sep 2017 22:16:58 +0200 Subject: [PATCH] Platform: show Emscripten windowless app log only after it loads. Otherwise it obscures the information about downloading. --- src/Magnum/Platform/WindowlessEmscriptenApplication.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Platform/WindowlessEmscriptenApplication.js b/src/Magnum/Platform/WindowlessEmscriptenApplication.js index 3d41835f0..64fea5f67 100644 --- a/src/Magnum/Platform/WindowlessEmscriptenApplication.js +++ b/src/Magnum/Platform/WindowlessEmscriptenApplication.js @@ -37,6 +37,7 @@ var Module = { } else { Module.setStatus(''); Module.setStatusDescription(''); + document.getElementById('log').style.display = 'block'; } } }; @@ -57,6 +58,8 @@ for(var i = 0; i != args.length; ++i) { Module.setStatus('Downloading...'); +document.getElementById('log').style.display = 'none'; + if(Module.canvas) Module.canvas.addEventListener('contextmenu', function(event) { event.preventDefault(); }, true);