Skip to content

Commit 8a72018

Browse files
authored
Update web persistence snippet
1 parent b2f129e commit 8a72018

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

firestore/test.firestore.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@ describe("firestore", () => {
1212
});
1313

1414
it("should be initializable with persistence", () => {
15-
// [START initialize_persistence]
1615
firebase.initializeApp({
1716
apiKey: '### FIREBASE API KEY ###',
1817
authDomain: '### FIREBASE AUTH DOMAIN ###',
1918
projectId: '### CLOUD FIRESTORE PROJECT ID ###',
20-
}
21-
// [START_EXCLUDE silent]
22-
,"persisted_app"
23-
// [END_EXCLUDE]
24-
);
19+
} ,"persisted_app");
2520

21+
// [START initialize_persistence]
2622
firebase.firestore().enablePersistence()
2723
.catch(function(err) {
2824
if (err.code == 'failed-precondition') {

0 commit comments

Comments
 (0)