mirror of
https://github.com/chinchang/web-maker.git
synced 2025-02-24 23:22:47 +01:00
auth: save last successful auth provider
This commit is contained in:
parent
d0c1c4d146
commit
213b9f166d
@ -21,6 +21,8 @@ function login(providerName) {
|
||||
.signInWithPopup(provider)
|
||||
.then(function() {
|
||||
trackEvent('fn', 'loggedIn', providerName);
|
||||
// Save to recommend next time
|
||||
window.db.local.set({ lastAuthProvider: providerName });
|
||||
})
|
||||
.catch(function(error) {
|
||||
alert(
|
||||
|
Loading…
x
Reference in New Issue
Block a user