summaryrefslogtreecommitdiff
path: root/platform/javascript/engine
diff options
context:
space:
mode:
Diffstat (limited to 'platform/javascript/engine')
-rw-r--r--platform/javascript/engine/preloader.js4
-rw-r--r--platform/javascript/engine/utils.js2
2 files changed, 0 insertions, 6 deletions
diff --git a/platform/javascript/engine/preloader.js b/platform/javascript/engine/preloader.js
index 17918eae38..b3467d009f 100644
--- a/platform/javascript/engine/preloader.js
+++ b/platform/javascript/engine/preloader.js
@@ -1,5 +1,4 @@
var Preloader = /** @constructor */ function() {
-
var DOWNLOAD_ATTEMPTS_MAX = 4;
var progressFunc = null;
var lastProgress = { loaded: 0, total: 0 };
@@ -20,9 +19,7 @@ var Preloader = /** @constructor */ function() {
}
function onXHREvent(resolve, reject, file, tracker, ev) {
-
if (this.status >= 400) {
-
if (this.status < 500 || ++tracker[file].attempts >= DOWNLOAD_ATTEMPTS_MAX) {
reject(new Error("Failed loading file '" + file + "': " + this.statusText));
this.abort();
@@ -103,7 +100,6 @@ var Preloader = /** @constructor */ function() {
};
var animateProgress = function() {
-
var loaded = 0;
var total = 0;
var totalIsValid = true;
diff --git a/platform/javascript/engine/utils.js b/platform/javascript/engine/utils.js
index 10e3abe91e..8455739a25 100644
--- a/platform/javascript/engine/utils.js
+++ b/platform/javascript/engine/utils.js
@@ -1,5 +1,4 @@
var Utils = {
-
createLocateRewrite: function(execName) {
function rw(path) {
if (path.endsWith('.worker.js')) {
@@ -38,7 +37,6 @@ var Utils = {
},
isWebGLAvailable: function(majorVersion = 1) {
-
var testContext = false;
try {
var testCanvas = document.createElement('canvas');