diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-08 21:11:14 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-08 21:11:14 +0200 |
commit | e0bbdd89bd33b1ed7361e316f137f3bfde34aff8 (patch) | |
tree | b6818efe25214c9d17cd6bf6359da8705854859d /src/utils/misc.tsx | |
parent | b101e643d5564ad93e7df6be9efde6e42cc7141d (diff) | |
download | Vencord-e0bbdd89bd33b1ed7361e316f137f3bfde34aff8.tar.gz Vencord-e0bbdd89bd33b1ed7361e316f137f3bfde34aff8.tar.bz2 Vencord-e0bbdd89bd33b1ed7361e316f137f3bfde34aff8.zip |
fix lazyWebpack.construct, lint uwuify
Diffstat (limited to 'src/utils/misc.tsx')
-rw-r--r-- | src/utils/misc.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 2ebf91c..f2228f8 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -25,7 +25,7 @@ export function lazyWebpack<T = any>(filter: FilterFn): T { has: (_, prop) => prop in getMod(), apply: (_, $this, args) => (getMod() as Function).apply($this, args), ownKeys: () => Reflect.ownKeys(getMod()), - construct: (_, args, newTarget) => new newTarget(...args), + construct: (_, args, newTarget) => Reflect.construct(getMod(), args, newTarget), deleteProperty: (_, prop) => delete getMod()[prop], defineProperty: (_, property, attributes) => !!Object.defineProperty(getMod(), property, attributes) }) as T; |