Skip to content

Commit 0a73f12

Browse files
committed
chore(spinner): avoid deprecation warning in Safari
Fixes a deprecation warning that was being logged by the spinner on Safari.
1 parent 9673f63 commit 0a73f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/progress-spinner/progress-spinner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements
200200
}
201201

202202
if (styleTag.sheet) {
203-
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText());
203+
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText(), 0);
204204
}
205205

206206
MatProgressSpinner.diameters.add(this.diameter);

0 commit comments

Comments
 (0)