Skip to content

Instantly share code, notes, and snippets.

@tobinbc
Created August 4, 2019 21:00
Show Gist options
  • Save tobinbc/d6b1e4c80d454fcaa7da960e65415ec3 to your computer and use it in GitHub Desktop.
Save tobinbc/d6b1e4c80d454fcaa7da960e65415ec3 to your computer and use it in GitHub Desktop.
initializeApp = async () => {
await this.platform.ready();
const platforms = this.platform.platforms();
switch (true) {
case platforms.includes('cordova'):
this.initMobile();
break;
case platforms.includes('mobileweb'):
case platforms.includes('desktop'):
this.initWeb();
break;
}
this.initCommon();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment