fix window button patch
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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`
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user