mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(platform): windows UA should not trigger iOS
This commit is contained in:
@ -105,7 +105,7 @@ Platform.register({
|
||||
tapPolyfill: isIOSDevice,
|
||||
},
|
||||
isMatch(p: Platform): boolean {
|
||||
return p.isPlatformMatch('ios', ['iphone', 'ipad', 'ipod']);
|
||||
return p.isPlatformMatch('ios', ['iphone', 'ipad', 'ipod'], ['windows phone']);
|
||||
},
|
||||
versionParser(p: Platform): any {
|
||||
return p.matchUserAgentVersion(/OS (\d+)_(\d+)?/);
|
||||
|
Reference in New Issue
Block a user