Skip to content

Commit 44f2811

Browse files
Update error message
1 parent 48d814b commit 44f2811

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

packages/firestore/src/local/indexeddb_persistence.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,11 @@ const MAX_PRIMARY_ELIGIBLE_AGE_MS = 5000;
105105
const CLIENT_METADATA_REFRESH_INTERVAL_MS = 4000;
106106
/** User-facing error when the primary lease is required but not available. */
107107
const PRIMARY_LEASE_EXCLUSIVE_ERROR_MSG =
108-
'Failed to obtain exclusive access to the persistence layer. ' +
109-
'To allow shared access, make sure to invoke ' +
110-
'`enablePersistence()` with `synchronizeTabs:true` in all tabs. ' +
111-
'If you are using `experimentalForceOwningTab:true`, make sure that only ' +
112-
'one tab has persistence enabled at any given time.';
108+
'Failed to obtain exclusive access to the persistence layer. To allow ' +
109+
'shared access, multi-tab synchronization has to be enabled in all tabs.';
113110
const UNSUPPORTED_PLATFORM_ERROR_MSG =
114-
'This platform is either missing' +
115-
' IndexedDB or is known to have an incomplete implementation. Offline' +
116-
' persistence has been disabled.';
111+
'This platform is either missing IndexedDB or is known to have ' +
112+
'an incomplete implementation. Offline persistence has been disabled.';
117113

118114
// The format of the LocalStorage key that stores zombied client is:
119115
// firestore_zombie_<persistence_prefix>_<instance_key>

0 commit comments

Comments
 (0)