Skip to content

Instantly share code, notes, and snippets.

@jcrashkit
Created February 25, 2020 01:50
Show Gist options
  • Save jcrashkit/a7070333d3cc727bc7e2ca6a7bdcbefa to your computer and use it in GitHub Desktop.
Save jcrashkit/a7070333d3cc727bc7e2ca6a7bdcbefa to your computer and use it in GitHub Desktop.
var OnOne = function() {
this.filter = {
sitename: '',
numsites: ''
};
this.dialogs = {};
var that = this;
firebase.firestore().enablePersistence()
.then(function() {
return firebase.auth().signInAnonymously();
})
.then(function() {
// ANCHOR
that.initRouter();
that.initAddedDialog();
}).catch(function(err) {
console.log(err);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment