tweak 1) dialog was visible before first opening on scroll.

tweak 2) dialog was removed, not just closed.
This commit is contained in:
Rich Boakes
2023-09-27 10:19:27 +01:00
parent 554307637d
commit 085b3151b0
2 changed files with 3 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ function openUsageDialog() {
const dialog = document.querySelector('#usage');
dialog.showModal();
dialog.addEventListener('click', () => {
dialog.remove();
dialog.close();
});
}