From df7d165228846d51beba93aaf133809d8f4824d4 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Tue, 13 Aug 2024 21:08:35 +0100 Subject: Move patches into a folder --- ...SP-bypass-on-stock-discord-desktop-client.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch (limited to 'vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch') diff --git a/vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch b/vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch new file mode 100644 index 0000000..3dd3dab --- /dev/null +++ b/vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch @@ -0,0 +1,29 @@ +From d0191e9b6ab6e6ae44857ee97ba392e8fbca91fd Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Wed, 27 Dec 2023 15:05:44 +0000 +Subject: [PATCH 5/8] Enable CSP bypass on stock discord desktop client + +--- + src/main/index.ts | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/main/index.ts b/src/main/index.ts +index 5519d47a..64e71c15 100644 +--- a/src/main/index.ts ++++ b/src/main/index.ts +@@ -24,10 +24,11 @@ import { RendererSettings } from "./settings"; + import { IS_VANILLA, THEMES_DIR } from "./utils/constants"; + import { installExt } from "./utils/extensions"; + +-if (IS_VESKTOP || !IS_VANILLA) { ++{ + app.whenReady().then(() => { + // Source Maps! Maybe there's a better way but since the renderer is executed + // from a string I don't think any other form of sourcemaps would work ++ if (IS_VESKTOP || !IS_VANILLA) + protocol.registerFileProtocol("vencord", ({ url: unsafeUrl }, cb) => { + let url = unsafeUrl.slice("vencord://".length); + if (url.endsWith("/")) url = url.slice(0, -1); +-- +2.45.2 + -- cgit v1.2.3