Browse Source

[ts] Resolve error when running npm install.

Luke Ingram 1 year ago
parent
commit
73318d6c79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-ts/spine-player/src/PlayerEditor.ts

+ 1 - 1
spine-ts/spine-player/src/PlayerEditor.ts

@@ -112,7 +112,7 @@ body { margin: 0px; }
 				this.startPlayer();
 			});
 
-			codeElement.children[0].style.height = "100%";
+			(codeElement.children[0] as HTMLElement).style.height = "100%";
 			this.setCode(SpinePlayerEditor.DEFAULT_CODE);
 		})
 	}