Skip to content

Commit

Permalink
web: Switch from deprecated rules property to preferred cssRules
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjacobs authored and adrian17 committed Sep 18, 2023
1 parent c1f53b3 commit 65d1ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/packages/core/src/ruffle-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ export class RufflePlayer extends HTMLElement {
*/
protected updateStyles(): void {
if (this.dynamicStyles.sheet) {
if (this.dynamicStyles.sheet.rules) {
if (this.dynamicStyles.sheet.cssRules) {
for (
let i = this.dynamicStyles.sheet.rules.length - 1;
let i = this.dynamicStyles.sheet.cssRules.length - 1;
i >= 0;
i--
) {
Expand Down

0 comments on commit 65d1ba4

Please sign in to comment.