mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Update WebContext Results
This commit is contained in:
parent
a7293a8127
commit
9e21e2d0b0
1 changed files with 9 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue