gjestebok

This commit is contained in:
sava
2020-03-27 23:29:16 +01:00
parent 891f219379
commit cff16efbf5
8 changed files with 122 additions and 11 deletions

View File

@@ -2,9 +2,7 @@
var db = firebase.firestore()
var list = function(user) {
// db.collection('bibliotek').doc("8ZBX5gmIaRwQBCjgLLg0").get().then(function(doc){console.log(doc.data())})
// db.collection('bibliotek').get().then(function(query){query.forEach(function(doc){console.log(doc.data())})})
db.collection('bibliotek')
db.collection("bibliotek")
.withConverter(bookConverter)
.get()
.then(function(query) {
@@ -52,9 +50,3 @@ firebase.auth().onAuthStateChanged(function(user) {
list(user)
})
/*
$(document).ready(function() {
list(firebase.auth().currentUser)
})
*/