Skip to content

Commit 90d39ce

Browse files
committed
Use window.emulatorURL for demo code
1 parent d3229fa commit 90d39ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/auth/demo/public/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ function initApp(){
16231623
log('Initializing app...');
16241624
app = firebase.initializeApp(config);
16251625
auth = app.auth();
1626-
if (emulatorUrl) {
1626+
if (window.emulatorUrl) {
16271627
auth.useEmulator(emulatorUrl);
16281628
}
16291629

@@ -1632,7 +1632,7 @@ function initApp(){
16321632
'authDomain': config['authDomain']
16331633
}, auth['app']['name'] + '-temp');
16341634
tempAuth = tempApp.auth();
1635-
if (emulatorUrl) {
1635+
if (window.emulatorUrl) {
16361636
tempAuth.useEmulator(emulatorUrl);
16371637
}
16381638

packages/auth/demo/public/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ self.addEventListener('fetch', function (event) {
155155
});
156156

157157
self.addEventListener('activate', function (event) {
158-
if (emulatorUrl) {
158+
if (window.emulatorUrl) {
159159
firebase.auth().useEmulator(emulatorUrl);
160160
}
161161
// Update this list with all caches that need to remain cached.

0 commit comments

Comments
 (0)