Skip to content

Commit 9aad14f

Browse files
committed
web: Use static observedAttributes in player attributeChangedCallback
1 parent ba9b348 commit 9aad14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/packages/core/src/internal/player/ruffle-player-element.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class RufflePlayerElement extends HTMLElement implements PlayerElement {
8484
_oldValue: string | undefined,
8585
_newValue: string | undefined,
8686
): void {
87-
if (name === "width" || name === "height" || name === "align") {
87+
if (RufflePlayerElement.observedAttributes.includes(name)) {
8888
this.#inner.updateStyles();
8989
}
9090
}

0 commit comments

Comments
 (0)