diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/constants.ts | 4 | ||||
-rw-r--r-- | src/utils/updater.ts | 2 |
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"; |