diff --git a/src/index.ts b/src/index.ts index cdc7dcf..57ba2ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 {