Browse Source

Fixed javascript code to remove animateStatusIndeterminate callback when the game is loaded.

(cherry picked from commit a5a413c7e971808576bbcf369e91208b51d0d819)
Enzo Ferrari 6 years ago
parent
commit
5323d24fad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      misc/dist/html/full-size.html

+ 2 - 2
misc/dist/html/full-size.html

@@ -180,8 +180,8 @@ $GODOT_HEAD_INCLUDE
 				[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
 					elem.style.display = 'none';
 				});
-				if (animateStatusIndeterminate in animationCallbacks) {
-					animationCallbacks.erase(animateStatusIndeterminate);
+				animationCallbacks = animationCallbacks.filter(function(value) {
+					return (value != animateStatusIndeterminate);
 				}
 				switch (mode) {
 					case 'progress':