Skip to content

Commit 527ccac

Browse files
Fix for emulator
According to the issue the format of USE_EMULATOR have changed. angular/angularfire#2929 (comment) This seems to have broken FirebaseUI-Angular in that it can no longer connect to the emulator. This change fixes the issue. However it is not backwards compatible which I don't know if it is a requirement.
1 parent a8b9707 commit 527ccac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/firebaseui-angular-library/src/lib/firebaseui-angular-library.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class FirebaseuiAngularLibraryService {
2424
if (!(<any>window).firebaseUiInstance) {
2525
const auth: _firebase.auth.Auth = app.auth();
2626
if (useEmulator) {
27-
auth.useEmulator(`http://${useEmulator.join(':')}`);
27+
auth.useEmulator(useEmulator[0]);
2828
}
2929
(<any>window).firebaseUiInstance = new firebaseui.auth.AuthUI(auth);
3030
}

0 commit comments

Comments
 (0)