Browse Source

Platform: random comment whitespace fixes.

pull/680/head
Vladimír Vondruš 11 months ago
parent
commit
990e2a4386
  1. 6
      src/Magnum/Platform/EmscriptenApplication.js
  2. 1
      src/Magnum/Platform/Platform.js.in

6
src/Magnum/Platform/EmscriptenApplication.js

@ -59,7 +59,8 @@ function createMagnumModule(init) {
setStatus: function(message) {
/* Emscripten calls setStatus("") after a timeout even if the app
aborts. That would erase the crash message, so don't allow that */
aborts. That would erase the crash message, so don't allow
that. */
if(module.status && module.status.innerHTML != "Oops :(")
module.status.innerHTML = message;
},
@ -101,7 +102,8 @@ function createMagnumModule(init) {
/* Let the user-supplied object overwrite all the above */
Object.assign(module, init);
/* We can do this here because at this point `module.status` should be correct */
/* We can do this here because at this point `module.status` should be
correct */
module.setStatus("Downloading...");
return module;

1
src/Magnum/Platform/Platform.js.in

@ -141,7 +141,6 @@ mergeInto(LibraryManager.library, {
};
window.requestAnimationFrame(drawEvent);
},
});
// kate: hl javascript

Loading…
Cancel
Save