Skip to content

Commit

Permalink
feat(hmr): Add Hot module reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera authored and davideast committed Sep 30, 2016
1 parent 5273429 commit c32a008
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/angularfire2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ export class AngularFire {
}

export function _getFirebase(config: FirebaseAppConfig): firebase.app.App {
return firebase.initializeApp(config);
try {
return firebase.initializeApp(config);
}
catch (e) {
return firebase.app(null);
}
}

export function _getWindowLocation(){
Expand Down

0 comments on commit c32a008

Please # to comment.