mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
fixed sendverificationemail not defined error
This commit is contained in:
parent
04e96902ce
commit
29a11fcab7
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue