diff options
-rw-r--r-- | lib/popups.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/popups.js b/lib/popups.js index 3d7e592..7c52874 100644 --- a/lib/popups.js +++ b/lib/popups.js @@ -31,4 +31,8 @@ document.querySelector(".ap-popup-container").addEventListener("click", function if(ev.target != this) return; this.classList.add("hidden") console.log("click!", ev) -}) \ No newline at end of file +}) + +export function hide() { + document.querySelector(".ap-popup-container").classList.add("hidden") +} \ No newline at end of file |