aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-10-23 23:23:52 +0200
committerGitHub <noreply@github.com>2022-10-23 23:23:52 +0200
commit5fac8be0ae68cbbdf3514973cbf925a31a765ef5 (patch)
tree8c184e0a2a9c8f4480e4c3880a58833e089a3da6 /src/utils
parentffbb52512cd61764cfe04c1cf2707eb63d5e57bf (diff)
downloadVencord-5fac8be0ae68cbbdf3514973cbf925a31a765ef5.tar.gz
Vencord-5fac8be0ae68cbbdf3514973cbf925a31a765ef5.tar.bz2
Vencord-5fac8be0ae68cbbdf3514973cbf925a31a765ef5.zip
Vencord Standalone without git/node (#148)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/constants.ts4
-rw-r--r--src/utils/updater.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index eccd3e3..30c07ba 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -16,8 +16,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import gitHash from "~git-hash";
+import gitRemote from "~git-remote";
+
export const WEBPACK_CHUNK = "webpackChunkdiscord_app";
export const REACT_GLOBAL = "Vencord.Webpack.Common.React";
+export const VENCORD_USER_AGENT = `Vencord/${gitHash}${gitRemote ? ` (https://github.com/${gitRemote})` : ""}`;
// Add yourself here if you made more than one plugin
export const Devs = Object.freeze({
diff --git a/src/utils/updater.ts b/src/utils/updater.ts
index 51739ae..ea2319f 100644
--- a/src/utils/updater.ts
+++ b/src/utils/updater.ts
@@ -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 IpcEvents from "./IpcEvents";
import Logger from "./logger";