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; const { patches, ...globals } = p;
for (const patch of patches) { for (const patch of patches) {
// @ts-expect-error outdated types don't have addPatch yet
// TODO: Update types // TODO: Update types
Vencord.Plugins.addPatch(patch, "Vesktop", "VesktopPatchGlobals"); Vencord.Plugins.addPatch(patch, "Vesktop", "VesktopPatchGlobals");
} }

View File

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