Default to mobile app promotion

This commit is contained in:
Lyubo Marinov
2017-02-27 23:34:34 -06:00
parent d371a3d5fd
commit 743d12e326
2 changed files with 14 additions and 3 deletions

View File

@@ -37,8 +37,12 @@ const _RULES = [
const OS = Platform.OS;
if (OS === 'android' || OS === 'ios') {
const mobileAppPromo
= typeof interfaceConfig === 'object'
&& interfaceConfig.MOBILE_APP_PROMO;
return (
interfaceConfig.MOBILE_APP_ENABLED
typeof mobileAppPromo === 'undefined' || Boolean(mobileAppPromo)
? UnsupportedMobileBrowser
: NoMobileApp);
}