Skip to content

Commit c32a008

Browse files
richteradavideast
authored andcommitted
feat(hmr): Add Hot module reloading
1 parent 5273429 commit c32a008

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/angularfire2.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ export class AngularFire {
4949
}
5050

5151
export function _getFirebase(config: FirebaseAppConfig): firebase.app.App {
52-
return firebase.initializeApp(config);
52+
try {
53+
return firebase.initializeApp(config);
54+
}
55+
catch (e) {
56+
return firebase.app(null);
57+
}
5358
}
5459

5560
export function _getWindowLocation(){

0 commit comments

Comments
 (0)