File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/firestore/exp/src/api Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const LOG_TAG = 'ComponentProvider';
37
37
// client. Dependencies can be lazily constructed and only one exists per
38
38
// Firestore instance.
39
39
40
- // Instance maps that ensures only one offline component provider exists per
40
+ // Instance maps that ensure that only one component provider exists per
41
41
// Firestore instance.
42
42
const offlineComponentProviders = new Map <
43
43
Firestore ,
@@ -55,8 +55,8 @@ export async function setOfflineComponentProvider(
55
55
) : Promise < void > {
56
56
debugAssert (
57
57
! onlineComponentProviders . has ( firestore ) ,
58
- 'The offline component ' +
59
- 'provider must be registered before the online component provider.'
58
+ 'The offline component provider must be registered before the online ' +
59
+ 'component provider.'
60
60
) ;
61
61
const configuration = await firestore . _getConfiguration ( ) ;
62
62
configuration . persistenceSettings = persistenceSettings ;
Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ export function enableIndexedDbPersistence(
175
175
verifyNotInitialized ( firestoreImpl ) ;
176
176
177
177
// `_getSettings()` freezes the client settings and prevents further changes
178
- // to the components (as `verifyNotInitialized()` would not fail). Components
179
- // can the be accessed via `getOfflineComponentProvider()` and
178
+ // to the components (as `verifyNotInitialized()` would fail). Components can
179
+ // then be accessed via `getOfflineComponentProvider()` and
180
180
// `getOnlineComponentProvider()`
181
181
const settings = firestoreImpl . _getSettings ( ) ;
182
182
@@ -202,8 +202,8 @@ export function enableMultiTabIndexedDbPersistence(
202
202
const settings = firestoreImpl . _getSettings ( ) ;
203
203
204
204
// `_getSettings()` freezes the client settings and prevents further changes
205
- // to the components (as `verifyNotInitialized()` would not fail). Components
206
- // can the be accessed via `getOfflineComponentProvider()` and
205
+ // to the components (as `verifyNotInitialized()` would fail). Components can
206
+ // then be accessed via `getOfflineComponentProvider()` and
207
207
// `getOnlineComponentProvider()`
208
208
const onlineComponentProvider = new OnlineComponentProvider ( ) ;
209
209
const offlineComponentProvider = new MultiTabOfflineComponentProvider (
You can’t perform that action at this time.
0 commit comments