1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-18 12:31:12 +02:00

handle multitab error.

This commit is contained in:
Kushagra Gour
2018-01-23 02:12:35 +05:30
parent 213b9f166d
commit 98fd9efc33
2 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,3 @@
/* global trackEvent */
window.logout = function logout() {
firebase.auth().signOut();
};
@@ -20,7 +18,7 @@ function login(providerName) {
.auth()
.signInWithPopup(provider)
.then(function() {
trackEvent('fn', 'loggedIn', providerName);
window.trackEvent('fn', 'loggedIn', providerName);
// Save to recommend next time
window.db.local.set({ lastAuthProvider: providerName });
})