Skip to content

Commit

Permalink
Only initialise if cordova
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Aug 19, 2018
1 parent e0785c8 commit 028c8aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ const app = {
codePush.sync(null, { installMode: InstallMode.ON_NEXT_RESUME });
},
};
app.initialize();
if (getState().application.isCordova) {
app.initialize();
}

function catchError(e) {
console.error(`Error Caught! ${e}`);
Expand Down

0 comments on commit 028c8aa

Please sign in to comment.