mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
wip
This commit is contained in:
@@ -12,6 +12,13 @@ export class Platform {
|
||||
return (this._platforms.indexOf(platformName) > -1);
|
||||
}
|
||||
|
||||
platforms(val) {
|
||||
if (arguments.length) {
|
||||
this._platforms = val;
|
||||
}
|
||||
return this._platforms;
|
||||
}
|
||||
|
||||
settings(val) {
|
||||
if (arguments.length) {
|
||||
this._settings = val;
|
||||
|
||||
@@ -8,7 +8,10 @@ Platform.register({
|
||||
'android',
|
||||
'ios',
|
||||
'windowsphone'
|
||||
]
|
||||
],
|
||||
settings: {
|
||||
mode: 'core'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -69,7 +72,7 @@ Platform.register({
|
||||
mode: 'ios'
|
||||
},
|
||||
isMatch(app) {
|
||||
return app.matchesPlatform('ios');
|
||||
return app.matchesPlatform('ios', 'iphone|ipad|ipod');
|
||||
},
|
||||
run() {
|
||||
Tap.run();
|
||||
|
||||
Reference in New Issue
Block a user