nixpkgs/pkgs/applications/networking/instant-messengers/webcord/webcord-vencord/add-extension.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
516 B
Diff
Raw Normal View History

diff --git a/sources/code/common/main.ts b/sources/code/common/main.ts
index 3936ee0..bd745ef 100644
--- a/sources/code/common/main.ts
+++ b/sources/code/common/main.ts
@@ -358,6 +358,7 @@ app.userAgentFallback = getUserAgent(process.versions.chrome, userAgent.mobile,
const singleInstance = app.requestSingleInstanceLock();
function main(): void {
+ session.defaultSession.loadExtension("@vencord@");
if (overwriteMain) {
// Execute flag-specific functions for ready application.
overwriteMain();