From 9e21e2d0b094aacb9eb111a78fab74db9b907908 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 31 Oct 2024 23:34:32 -0400 Subject: [PATCH] Update WebContext Results --- src/plugins/webContextMenus.web/index.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/plugins/webContextMenus.web/index.ts b/src/plugins/webContextMenus.web/index.ts index 54da3095..07dde56d 100644 --- a/src/plugins/webContextMenus.web/index.ts +++ b/src/plugins/webContextMenus.web/index.ts @@ -32,14 +32,15 @@ async function fetchImage(url: string) { } let result; -if (IS_VESKTOP) { - result = IS_VESKTOP; -} else if (IS_EQUIBOP) { - result = IS_EQUIBOP; -} else if (IS_WEB) { - result = IS_WEB; -} else { - result = false; +switch (true) { + case IS_VESKTOP: + case IS_EQUIBOP: + case "legcord" in window: + case "goofcord" in window: + result = true; + break; + default: + result = false; }