From a5ec031a2f1029ecd20cd0b79f62a22dfc612d14 Mon Sep 17 00:00:00 2001 From: V Date: Sat, 12 Aug 2023 04:01:10 +0200 Subject: [PATCH] Fix windows titlebar on canary --- src/renderer/patches/windowsTitleBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/patches/windowsTitleBar.tsx b/src/renderer/patches/windowsTitleBar.tsx index 708ec60..4ae50b2 100644 --- a/src/renderer/patches/windowsTitleBar.tsx +++ b/src/renderer/patches/windowsTitleBar.tsx @@ -21,7 +21,7 @@ if (Settings.store.discordWindowsTitleBar) replace: 'case "WEB":' }, ...["close", "minimize", "maximize"].map(op => ({ - match: new RegExp(String.raw`\i\.default\.${op}\b`), + match: new RegExp(String.raw`\i\.\i\.${op}\b`), replace: `VesktopNative.win.${op}` })) ]