mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
make default
platform fallback
This commit is contained in:
@ -54,7 +54,15 @@ platform.register({
|
||||
name: 'ios',
|
||||
// For now always default to ios
|
||||
matcher() {
|
||||
return window.IONIC_PLATFORM === 'ios';
|
||||
return window.IONIC_PLATFORM === 'ios' || /ipad|iphone|ipod/i.test(ua);
|
||||
}
|
||||
});
|
||||
|
||||
// Last case is a catch-all
|
||||
platform.register({
|
||||
name: 'default',
|
||||
matcher() {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user