aboutsummaryrefslogtreecommitdiff
path: root/src/Vencord.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-04 12:57:39 +0200
committerVendicated <vendicated@riseup.net>2022-10-04 12:57:39 +0200
commit3a9f6926442dd673bfac67424317e04b80bcc0f8 (patch)
tree0e90aea00c456b1352a3aba180035645b76066af /src/Vencord.ts
parente35393b40cdf146644d7a136be422a9a280f56be (diff)
downloadVencord-3a9f6926442dd673bfac67424317e04b80bcc0f8.tar.gz
Vencord-3a9f6926442dd673bfac67424317e04b80bcc0f8.tar.bz2
Vencord-3a9f6926442dd673bfac67424317e04b80bcc0f8.zip
Fix Desktop thinking it's web
I forgor to test host after adding web support
Diffstat (limited to 'src/Vencord.ts')
-rw-r--r--src/Vencord.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Vencord.ts b/src/Vencord.ts
index 5b3d6f2..716cb83 100644
--- a/src/Vencord.ts
+++ b/src/Vencord.ts
@@ -16,6 +16,12 @@ import { checkForUpdates, UpdateLogger } from './utils/updater';
import { onceReady } from "./webpack";
import { Router } from "./webpack/common";
+Object.defineProperty(window, "IS_WEB", {
+ get: () => !window.DiscordNative,
+ configurable: true,
+ enumerable: true
+});
+
export let Components;
async function init() {