Skip to content

Commit b1040cb

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 cf11ff2 commit b1040cb

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
@@ -203,7 +203,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements
203203
}
204204

205205
if (styleTag && styleTag.sheet) {
206-
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText());
206+
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText(), 0);
207207
}
208208

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

0 commit comments

Comments
 (0)