Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function subirPost()
- {
- let Post = {};
- Post.post = document.getElementById("MuroContent").value;
- var d = new Date();
- Post.date = d.toLocaleDateString('en-US');
- let user = firebase.auth().currentUser;
- var ref = firebase.database().ref("Muro/"+ user.uid + "/Posts");
- var newRef = ref.push();
- console.log(Post.date);
- newRef.set(Post);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement