fix window button patch

This commit is contained in:
Vendicated
2025-04-13 14:29:09 +02:00
parent 43f59cefda
commit 49784bc1aa
2 changed files with 1 additions and 2 deletions

View File

@@ -17,7 +17,6 @@ export function addPatch<P extends PatchData>(p: P) {
const { patches, ...globals } = p;
for (const patch of patches) {
// @ts-expect-error outdated types don't have addPatch yet
// TODO: Update types
Vencord.Plugins.addPatch(patch, "Vesktop", "VesktopPatchGlobals");
}

View File

@@ -13,7 +13,7 @@ addPatch({
replacement: [
{
// eslint-disable-next-line no-useless-escape
match: /\i\.window\.(close|minimize|maximize)/,
match: /\i\.window\.(close|minimize|maximize)/g,
replace: `VesktopNative.win.$1`
},
{