From 5fac8be0ae68cbbdf3514973cbf925a31a765ef5 Mon Sep 17 00:00:00 2001 From: Ven Date: Sun, 23 Oct 2022 23:23:52 +0200 Subject: Vencord Standalone without git/node (#148) --- src/plugins/settings.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/plugins/settings.ts') 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 . */ -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)," ")`; -- cgit