Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function saveToFB(gamename,date,time,description, email) {
- //loguje usera na sztywno
- var auth = firebase.auth();
- var email = "a@a.com"
- var pass = "aaaaaa"
- auth.signInWithEmailAndPassword(email, pass);
- //pobieram info o zalogowanym userze
- var user = firebase.auth().currentUser;
- if (user) {
- var email = user.email;
- } else {
- email = "brak";
- }
- // this will save data to Firebase
- gamesRoot.push({
- gamename: gamename,
- date: date,
- time: time,
- description: description,
- email: email
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement