We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 785e2b9 commit 850a724Copy full SHA for 850a724
packages/app/browser/src/app.ts
@@ -20,13 +20,8 @@ window.addEventListener("message", (event) => {
20
});
21
22
const password = document.getElementById("password") as HTMLInputElement;
23
-const submit = document.getElementById("submit") as HTMLButtonElement;
24
const form = document.getElementById("login-form") as HTMLFormElement;
25
26
-if (!submit) {
27
- throw new Error("No submit button found");
28
-}
29
-
30
form.addEventListener("submit", (e) => {
31
e.preventDefault();
32
document.cookie = `password=${password.value}`;
0 commit comments