Skip to content

Commit

Permalink
Merge pull request #4541 from PhilHannent/master
Browse files Browse the repository at this point in the history
Fixes #4070 because Windows Phone reports itself as being "Mozilla/5.…
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents 5b6e4d6 + 76189f4 commit a03b51b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/utils/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@
platformName = n.toLowerCase();
} else if (getParameterByName('ionicplatform')) {
platformName = getParameterByName('ionicplatform');
} else if (self.ua.indexOf('Windows Phone') > -1) {
platformName = WINDOWS_PHONE;
} else if (self.ua.indexOf('Android') > 0) {
platformName = ANDROID;
} else if (/iPhone|iPad|iPod/.test(self.ua)) {
platformName = IOS;
} else if (self.ua.indexOf('Windows Phone') > -1) {
platformName = WINDOWS_PHONE;
} else {
platformName = self.navigator.platform && navigator.platform.toLowerCase().split(' ')[0] || '';
}
Expand Down

0 comments on commit a03b51b

Please sign in to comment.