mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-09 16:06:21 +02:00
auth: save last successful auth provider
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user