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

open up accounts to chrome extension too 🚀

This commit is contained in:
Kushagra Gour
2018-03-11 23:51:10 +05:30
parent 5ff7360f6f
commit 8ac1e82160
4 changed files with 8 additions and 6 deletions

View File

@@ -23,10 +23,12 @@ function login(providerName) {
window.db.local.set({ lastAuthProvider: providerName });
})
.catch(function(error) {
alert(
'You have already signed up with the same email using different social login'
);
utils.log(error);
if (error.code === 'auth/account-exists-with-different-credential') {
alert(
'You have already signed up with the same email using different social login'
);
}
});
}
window.login = login;