Skip to content

Commit

Permalink
chore(spinner): avoid deprecation warning in Safari (angular#7810)
Browse files Browse the repository at this point in the history
Fixes a deprecation warning that was being logged by the spinner on Safari.
  • Loading branch information
crisbeto authored and andrewseguin committed Nov 3, 2017
1 parent 25bc760 commit 24f0471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/progress-spinner/progress-spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 24f0471

Please sign in to comment.