File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
packages/database/src/core Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -743,9 +743,14 @@ export class PersistentConnection extends ServerActions {
743
743
const forceRefresh = this . forceTokenRefresh_ ;
744
744
this . forceTokenRefresh_ = false ;
745
745
746
- if ( typeof process !== 'undefined' && process . env [ FIREBASE_DATABASE_EMULATOR_HOST_VAR ] ) {
747
- log ( 'Connecting to a database emulator, ommitting access token requests.' ) ;
748
- self . authToken_ = "owner"
746
+ if (
747
+ typeof process !== 'undefined' &&
748
+ process . env [ FIREBASE_DATABASE_EMULATOR_HOST_VAR ]
749
+ ) {
750
+ log (
751
+ 'Connecting to a database emulator, ommitting access token requests.'
752
+ ) ;
753
+ self . authToken_ = 'owner' ;
749
754
connection = new Connection (
750
755
connId ,
751
756
self . repoInfo_ ,
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ import { RepoInfo } from './RepoInfo';
28
28
/** @const {string} */
29
29
const DATABASE_URL_OPTION = 'databaseURL' ;
30
30
31
- export const FIREBASE_DATABASE_EMULATOR_HOST_VAR = 'FIREBASE_DATABASE_EMULATOR_HOST' ;
31
+ export const FIREBASE_DATABASE_EMULATOR_HOST_VAR =
32
+ 'FIREBASE_DATABASE_EMULATOR_HOST' ;
32
33
33
34
let _staticInstance : RepoManager ;
34
35
You can’t perform that action at this time.
0 commit comments