瀏覽代碼

Merge pull request #30864 from enzogupi/patch-1

HTML5 default loader: small bugfix
Rémi Verschelde 6 年之前
父節點
當前提交
8acaac10b6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      misc/dist/html/full-size.html

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

@@ -175,8 +175,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':