mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(spinner): avoid deprecation warning in Safari (#7810)
Fixes a deprecation warning that was being logged by the spinner on Safari.
This commit is contained in:
committed by
Andrew Seguin
parent
25bc760eef
commit
24f0471b72
@@ -203,7 +203,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements
|
||||
}
|
||||
|
||||
if (styleTag && styleTag.sheet) {
|
||||
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText());
|
||||
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText(), 0);
|
||||
}
|
||||
|
||||
MatProgressSpinner.diameters.add(this.diameter);
|
||||
|
||||
Reference in New Issue
Block a user