e2e: make examples build per-platform

This commit is contained in:
Andrew
2015-03-27 15:27:03 -06:00
parent dec338e234
commit 042c567a50
13 changed files with 193 additions and 133 deletions

View File

@ -46,14 +46,15 @@ var ua = window.navigator.userAgent;
platform.register({
name: 'android',
matcher() {
return /android/i.test(ua);
//TODO Make a better override than window
return window.IONIC_PLATFORM == 'android' || /android/i.test(ua);
}
});
platform.register({
name: 'ios',
// For now always default to ios
matcher() {
return true;
return window.IONIC_PLATFORM === 'ios';
}
});