aboutsummaryrefslogtreecommitdiffstats
path: root/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch
diff options
context:
space:
mode:
author1024x22024-02-16 22:04:43 +0000
committer1024x22024-02-16 22:04:43 +0000
commit5ccb126decfdebe16db32a2df22d9e75e4949654 (patch)
tree67f5990a52c25b4bd9d8da49ed5d4be8f8b62544 /0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch
Initial commit
Diffstat (limited to '0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch')
-rw-r--r--0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch b/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch
new file mode 100644
index 0000000..7be02d7
--- /dev/null
+++ b/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch
@@ -0,0 +1,29 @@
+From a88292149ce6bf585d2340774ab605ac88ebb742 Mon Sep 17 00:00:00 2001
+From: 1024x2 <2pow11@gmail.com>
+Date: Wed, 27 Dec 2023 15:05:44 +0000
+Subject: [PATCH 5/5] 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 481736a..33dbe3f 100644
+--- a/src/main/index.ts
++++ b/src/main/index.ts
+@@ -23,10 +23,11 @@ import { ensureSafePath, getSettings } from "./ipcMain";
+ 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.43.1
+