Skip to content

Commit

Permalink
remove uneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
Flolon committed Jan 23, 2025
1 parent 3e450ae commit 943d045
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/LoginModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,11 @@ class LoginModalComponent extends HTMLElement {
}

show() {
// window.scrollTo(0, 0);
// document.querySelector("#overlay").classList.remove("hidden");
// document.body.classList.add("overflowhidden");
this.shadow.querySelector("dialog").showModal();
this.shadow.querySelector("#username").focus();
}

hide() {
// document.querySelector("#overlay").classList.add("hidden");
// document.body.classList.remove("overflowhidden");
this.shadow.querySelector("dialog").close();
this.shadow.querySelector("#username").value = "";
this.shadow.querySelector("#password").value = "";
Expand Down

0 comments on commit 943d045

Please sign in to comment.