Skip to content

Commit

Permalink
added custom popup event for side settings menu
Browse files Browse the repository at this point in the history
  • Loading branch information
egekorkan committed Nov 14, 2023
1 parent ab7fc7f commit e948ecf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web-new/src/scripts/settings-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ closeSettings.addEventListener("click", () => {

settingsBtn.addEventListener("click", () => {
settingsMenu.classList.toggle("closed")
window.dispatchEvent(new CustomEvent("popup"));
})

//Handle click outside the settings menu
Expand Down

0 comments on commit e948ecf

Please sign in to comment.