diff --git a/src/renderer/patches/index.ts b/src/renderer/patches/index.ts index aabff3e..a08f1f1 100644 --- a/src/renderer/patches/index.ts +++ b/src/renderer/patches/index.ts @@ -12,3 +12,4 @@ import "./hideVenmicInput"; import "./screenShareFixes"; import "./spellCheck"; import "./windowsTitleBar"; +import "./reportAsClient"; diff --git a/src/renderer/patches/reportAsClient.ts b/src/renderer/patches/reportAsClient.ts new file mode 100644 index 0000000..d068ed2 --- /dev/null +++ b/src/renderer/patches/reportAsClient.ts @@ -0,0 +1,19 @@ +/* + * SPDX-License-Identifier: GPL-3.0 + * Vesktop, a desktop app aiming to give you a snappier Discord Experience + * Copyright (c) 2023 Vendicated and Vencord contributors + */ + +import { addPatch } from "./shared"; + +addPatch({ + patches: [ + { + find: "_doIdentify(){", + replacement: { + match: /(let c=\{.*properties:)(l)/, + replace: '$1{...$2, browser: "Discord Client"}' + } + } + ] +});