diff --git a/src/Magnum/Platform/EmscriptenApplication.js b/src/Magnum/Platform/EmscriptenApplication.js index d0e07028b..008c90deb 100644 --- a/src/Magnum/Platform/EmscriptenApplication.js +++ b/src/Magnum/Platform/EmscriptenApplication.js @@ -73,11 +73,11 @@ function createMagnumModule(init) { totalDependencies: 0, monitorRunDependencies: function(left) { - this.totalDependencies = Math.max(this.totalDependencies, left); + module.totalDependencies = Math.max(module.totalDependencies, left); if(left) { module.setStatus('Downloading...'); - module.setStatusDescription((this.totalDependencies - left) + ' / ' + this.totalDependencies); + module.setStatusDescription((module.totalDependencies - left) + ' / ' + module.totalDependencies); } else { module.setStatus('Download complete'); module.setStatusDescription(''); diff --git a/src/Magnum/Platform/WindowlessEmscriptenApplication.js b/src/Magnum/Platform/WindowlessEmscriptenApplication.js index 6c5e5cafb..5aaaab2d7 100644 --- a/src/Magnum/Platform/WindowlessEmscriptenApplication.js +++ b/src/Magnum/Platform/WindowlessEmscriptenApplication.js @@ -73,11 +73,11 @@ function createMagnumModule(init) { totalDependencies: 0, monitorRunDependencies: function(left) { - this.totalDependencies = Math.max(this.totalDependencies, left); + module.totalDependencies = Math.max(module.totalDependencies, left); if(left) { module.setStatus('Downloading...'); - module.setStatusDescription((this.totalDependencies - left) + ' / ' + this.totalDependencies); + module.setStatusDescription((module.totalDependencies - left) + ' / ' + module.totalDependencies); } else { module.setStatus('Download complete'); module.setStatusDescription('');