Skip to content

Commit fe0519f

Browse files
committed
docs: correct usage guidance for enabling persistence on web
1 parent 0428b74 commit fe0519f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/firebase_snippets_app/lib/snippets/firestore.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,12 +1069,8 @@ class FirestoreSnippets extends DocSnippet {
10691069

10701070
void accessDataOffline_configure() async {
10711071
// [START access_data_offline_configure_offline_persistence]
1072-
// Apple and Android
1072+
// Apple, Android and Web
10731073
db.settings = const Settings(persistenceEnabled: true);
1074-
1075-
// Web
1076-
await db
1077-
.enablePersistence(const PersistenceSettings(synchronizeTabs: true));
10781074
// [END access_data_offline_configure_offline_persistence]
10791075
}
10801076

0 commit comments

Comments
 (0)