nixpkgs/pkgs/by-name/we/webcord-vencord/add-extension.patch
2024-05-04 14:53:22 -04:00

13 lines
516 B
Diff

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();