Skip to content

Commit

Permalink
fix(MdProgressSpinner): undefined navigator on SSR (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuell1 authored and marcosmoura committed Jan 26, 2018
1 parent 1f387c5 commit 4722dad
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -55,7 +55,10 @@
return this.mdMode === 'indeterminate'
},
isIE () {
return navigator.userAgent.toLowerCase().includes('trident')
if (!this.$isServer) {
return navigator.userAgent.toLowerCase().includes('trident')
}
return false
},
progressClasses () {
let animationClass = 'md-progress-spinner-indeterminate'
Expand Down

0 comments on commit 4722dad

Please sign in to comment.