Skip to content

Commit 49784bc

Browse files
committed
fix window button patch
1 parent 43f59ce commit 49784bc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/renderer/patches/shared.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export function addPatch<P extends PatchData>(p: P) {
1717
const { patches, ...globals } = p;
1818

1919
for (const patch of patches) {
20-
// @ts-expect-error outdated types don't have addPatch yet
2120
// TODO: Update types
2221
Vencord.Plugins.addPatch(patch, "Vesktop", "VesktopPatchGlobals");
2322
}

src/renderer/patches/windowMethods.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ addPatch({
1313
replacement: [
1414
{
1515
// eslint-disable-next-line no-useless-escape
16-
match: /\i\.window\.(close|minimize|maximize)/,
16+
match: /\i\.window\.(close|minimize|maximize)/g,
1717
replace: `VesktopNative.win.$1`
1818
},
1919
{

0 commit comments

Comments
 (0)