Skip to content

Instantly share code, notes, and snippets.

@thangman22
Last active October 14, 2017 03:02
Show Gist options
  • Select an option

  • Save thangman22/ab41d0ac31984588d316fa5f9eb1c3b3 to your computer and use it in GitHub Desktop.

Select an option

Save thangman22/ab41d0ac31984588d316fa5f9eb1c3b3 to your computer and use it in GitHub Desktop.
(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