fixed sendverificationemail not defined error

This commit is contained in:
Jack 2020-11-21 17:15:15 +00:00
parent 04e96902ce
commit 29a11fcab7

View file

@ -128,6 +128,22 @@ function getCookie(cname) {
return "";
}
function sendVerificationEmail() {
showBackgroundLoader();
let cu = firebase.auth().currentUser;
cu.sendEmailVerification()
.then((e) => {
hideBackgroundLoader();
showNotification("Email sent to " + cu.email, 4000);
})
.catch((e) => {
hideBackgroundLoader();
showNotification("Error: " + e.message, 3000);
console.error(e.message);
});
}
window.sendVerificationEmail = sendVerificationEmail;
function smooth(arr, windowSize, getter = (value) => value, setter) {
const get = getter;
const result = [];