Remember avatar email
This commit is contained in:
parent
638488e148
commit
bf8e65b59a
|
@ -97,11 +97,12 @@ function bootApp(ds: Ref, scene: Scene) {
|
|||
}
|
||||
}
|
||||
|
||||
field email: string = id;
|
||||
field email: string = localStorage.getItem('userEmail') ?? id;
|
||||
const emailInput = document.getElementById('emailInput') as HTMLInputElement;
|
||||
emailInput.value = id;
|
||||
emailInput.value = email.value;
|
||||
emailInput.addEventListener('keyup', () => thisFacet.turn(() => {
|
||||
email.value = emailInput.value;
|
||||
localStorage.setItem('userEmail', emailInput.value);
|
||||
}));
|
||||
|
||||
at sceneDs {
|
||||
|
|
Loading…
Reference in New Issue