== to === in context menu
This commit is contained in:
@@ -6,7 +6,7 @@ class Contextmenu {
|
|||||||
static setup() {
|
static setup() {
|
||||||
Contextmenu.currentmenu = "";
|
Contextmenu.currentmenu = "";
|
||||||
document.addEventListener("click", event => {
|
document.addEventListener("click", event => {
|
||||||
if (Contextmenu.currentmenu == "") {
|
if (Contextmenu.currentmenu === "") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!Contextmenu.currentmenu.contains(event.target)) {
|
if (!Contextmenu.currentmenu.contains(event.target)) {
|
||||||
|
@@ -6,7 +6,7 @@ class Contextmenu<x,y>{
|
|||||||
static setup(){
|
static setup(){
|
||||||
Contextmenu.currentmenu="";
|
Contextmenu.currentmenu="";
|
||||||
document.addEventListener("click", event=>{
|
document.addEventListener("click", event=>{
|
||||||
if(Contextmenu.currentmenu==""){
|
if(Contextmenu.currentmenu===""){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!Contextmenu.currentmenu.contains(event.target)){
|
if(!Contextmenu.currentmenu.contains(event.target)){
|
||||||
|
Reference in New Issue
Block a user