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:
commit
533afc8fec
@ -323,7 +323,7 @@
|
||||
// set OS flags for platforms that have multiple browsers
|
||||
if (!result.windowsphone && !result.msedge && (android || result.silk)) {
|
||||
result.android = t
|
||||
} else if (iosdevice) {
|
||||
} else if (!result.windowsphone && !result.msedge && iosdevice) {
|
||||
result[iosdevice] = t
|
||||
result.ios = t
|
||||
} else if (mac) {
|
||||
|
@ -936,8 +936,9 @@ module.exports.useragents = {
|
||||
, mobile: 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
|
||||
, webkit: true
|
||||
, osversion: '8.1'
|
||||
, msie: true
|
||||
, version: '11.0'
|
||||
|
Loading…
Reference in New Issue
Block a user