1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Merge pull request #169 from bdelaforest/master

Fix WindowsPhone flagged as iOS
This commit is contained in:
Denis Demchenko 2016-10-28 14:37:54 +03:00 committed by GitHub
commit 533afc8fec
2 changed files with 3 additions and 2 deletions

View File

@ -323,7 +323,7 @@
// set OS flags for platforms that have multiple browsers // set OS flags for platforms that have multiple browsers
if (!result.windowsphone && !result.msedge && (android || result.silk)) { if (!result.windowsphone && !result.msedge && (android || result.silk)) {
result.android = t result.android = t
} else if (iosdevice) { } else if (!result.windowsphone && !result.msedge && iosdevice) {
result[iosdevice] = t result[iosdevice] = t
result.ios = t result.ios = t
} else if (mac) { } else if (mac) {

View File

@ -936,8 +936,9 @@ module.exports.useragents = {
, mobile: true , mobile: true
, a: true , a: true
} }
, 'Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; Microsoft; Lumia 535)': { , 'Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; Microsoft; Lumia 640 LTE) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537': {
windowsphone: true windowsphone: true
, webkit: true
, osversion: '8.1' , osversion: '8.1'
, msie: true , msie: true
, version: '11.0' , version: '11.0'