style(all): minor changes

This commit is contained in:
Manu Mtz.-Almeida
2016-11-20 16:00:17 +01:00
parent c002b36a56
commit 6f96ede2ea
3 changed files with 8 additions and 5 deletions

View File

@@ -106,7 +106,7 @@ export const PLATFORM_CONFIGS: {[key: string]: PlatformConfig} = {
keyboardHeight: 300,
mode: 'ios',
scrollAssist: isIOS,
statusbarPadding: !!((<any>window).cordova),
statusbarPadding: isCordova,
swipeBackEnabled: isIOS,
swipeBackThreshold: 40,
tapPolyfill: isIOSUI,
@@ -218,6 +218,9 @@ export const PLATFORM_CONFIGS: {[key: string]: PlatformConfig} = {
}
};
function isCordova(): boolean {
return !!((<any>window).cordova);
}
function isIOS(p: Platform): boolean {
// shortcut function to be reused internally