This commit is contained in:
Adam Bradley
2015-06-25 08:36:17 -05:00
parent 2fabe929c6
commit 3be98eb378
4 changed files with 90 additions and 98 deletions

View File

@@ -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;

View File

@@ -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();