Last active
October 14, 2017 03:02
-
-
Save thangman22/ab41d0ac31984588d316fa5f9eb1c3b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (async function () { | |
| firebase.initializeApp({ | |
| apiKey: '### FIREBASE API KEY ###', | |
| authDomain: '### FIREBASE AUTH DOMAIN ###', | |
| projectId: '### CLOUD FIRESTORE PROJECT ID ###', | |
| } | |
| ) | |
| let offlineEnable = await firebase.firestore().enablePersistence() | |
| // Initialize Cloud Firestore through firebase | |
| let db = firebase.firestore() | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment