diff --git a/.dist/contextmenu.js b/.dist/contextmenu.js index 0095626..57905a5 100644 --- a/.dist/contextmenu.js +++ b/.dist/contextmenu.js @@ -6,7 +6,7 @@ class Contextmenu { static setup() { Contextmenu.currentmenu = ""; document.addEventListener("click", event => { - if (Contextmenu.currentmenu == "") { + if (Contextmenu.currentmenu === "") { return; } if (!Contextmenu.currentmenu.contains(event.target)) { diff --git a/webpage/contextmenu.ts b/webpage/contextmenu.ts index 6b07f8b..b5a08ec 100644 --- a/webpage/contextmenu.ts +++ b/webpage/contextmenu.ts @@ -6,7 +6,7 @@ class Contextmenu{ static setup(){ Contextmenu.currentmenu=""; document.addEventListener("click", event=>{ - if(Contextmenu.currentmenu==""){ + if(Contextmenu.currentmenu===""){ return; } if(!Contextmenu.currentmenu.contains(event.target)){