From 74203afb39f16ecfce764325339a6c4d2d72879a Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Mon, 2 Sep 2024 21:58:14 -0500 Subject: [PATCH] == to === in context menu --- .dist/contextmenu.js | 2 +- webpage/contextmenu.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)){