diff options
Diffstat (limited to 'src/plugins/settings.ts')
-rw-r--r-- | src/plugins/settings.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/settings.ts b/src/plugins/settings.ts index 56726b5..df27ca1 100644 --- a/src/plugins/settings.ts +++ b/src/plugins/settings.ts @@ -1,6 +1,6 @@ /* * Vencord, a modification for Discord's desktop app - * Copyright (c) 2022 Vendicated and contributors + * Copyright (c) 2022 Vendicated and Megumin * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import gitHash from "git-hash"; +import gitHash from "~git-hash"; import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; @@ -34,7 +34,13 @@ export default definePlugin({ replace: m => { const idx = m.indexOf("Host") - 1; const template = m.slice(0, idx); - let r = `${m}, ${template}"Vencord ", "${gitHash}${IS_WEB ? " (Web)" : ""}"), " ")`; + const additionalInfo = IS_WEB + ? " (Web)" + : IS_STANDALONE + ? " (Standalone)" + : ""; + + let r = `${m}, ${template}"Vencord ", "${gitHash}${additionalInfo}"), " ")`; if (!IS_WEB) { r += `,${template} "Electron ",VencordNative.getVersions().electron)," "),`; r += `${template} "Chrome ",VencordNative.getVersions().chrome)," ")`; |