File tree 2 files changed +10
-4
lines changed
packages/firestore/src/lite-api
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/firestore " : patch
3
+ ---
4
+
5
+ Fix potentially false warning message.
Original file line number Diff line number Diff line change @@ -301,17 +301,18 @@ export function connectFirestoreEmulator(
301
301
) : void {
302
302
firestore = cast ( firestore , Firestore ) ;
303
303
const settings = firestore . _getSettings ( ) ;
304
+ const newHostSetting = `${ host } :${ port } ` ;
304
305
305
- if ( settings . host !== DEFAULT_HOST && settings . host !== host ) {
306
+ if ( settings . host !== DEFAULT_HOST && settings . host !== newHostSetting ) {
306
307
logWarn (
307
- 'Host has been set in both settings() and useEmulator (), emulator host ' +
308
- 'will be used'
308
+ 'Host has been set in both settings() and connectFirestoreEmulator (), emulator host ' +
309
+ 'will be used. '
309
310
) ;
310
311
}
311
312
312
313
firestore . _setSettings ( {
313
314
...settings ,
314
- host : ` ${ host } : ${ port } ` ,
315
+ host : newHostSetting ,
315
316
ssl : false
316
317
} ) ;
317
318
You can’t perform that action at this time.
0 commit comments