Skip to content

Commit d7da115

Browse files
web: Use static observedAttributes in player attributeChangedCallback
1 parent c483860 commit d7da115

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

Lines changed: 1 addition & 1 deletion
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)