mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 10:42:23 +00:00
fix crash
This commit is contained in:
1 parent
f8eb01de9c
commit
759ed34939
1 file changed
+2
-4
@@ -147,10 +147,8 @@ class Contextmenu<x, y> {
|
||||
static setup() {
|
||||
Contextmenu.declareMenu();
|
||||
document.addEventListener("click", (event) => {
|
||||
while (Contextmenu.currentmenu) {
|
||||
if (!Contextmenu.currentmenu.contains(event.target as Node)) {
|
||||
Contextmenu.declareMenu();
|
||||
}
|
||||
while (Contextmenu.currentmenu && !Contextmenu.currentmenu.contains(event.target as Node)) {
|
||||
Contextmenu.declareMenu();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user