Skip to content

Commit 850a724

Browse files
author
John McCambridge
committed
Remove button listener
1 parent 785e2b9 commit 850a724

File tree

1 file changed

+0
-5
lines changed
  • packages/app/browser/src

1 file changed

+0
-5
lines changed

packages/app/browser/src/app.ts

-5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ window.addEventListener("message", (event) => {
2020
});
2121

2222
const password = document.getElementById("password") as HTMLInputElement;
23-
const submit = document.getElementById("submit") as HTMLButtonElement;
2423
const form = document.getElementById("login-form") as HTMLFormElement;
2524

26-
if (!submit) {
27-
throw new Error("No submit button found");
28-
}
29-
3025
form.addEventListener("submit", (e) => {
3126
e.preventDefault();
3227
document.cookie = `password=${password.value}`;

0 commit comments

Comments
 (0)