make default platform fallback

This commit is contained in:
Andrew
2015-03-27 18:57:03 -06:00
parent 042c567a50
commit e31c18311a
2 changed files with 11 additions and 3 deletions

View File

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