Fix Desktop thinking it's web

I forgor to test host after adding web support
This commit is contained in:
Vendicated 2022-10-04 12:57:39 +02:00
parent e35393b40c
commit 3a9f692644
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
6 changed files with 8 additions and 5 deletions

View file

@ -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() {