mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 01:23:03 -04:00
Fix components filter
This commit is contained in:
parent
4e27722b54
commit
4da79abb21
2 changed files with 9 additions and 6 deletions
|
@ -90,6 +90,11 @@ function patchPush(webpackGlobal: any) {
|
|||
logger.error("Error in patched chunk", err);
|
||||
return void originalMod(module, exports, require);
|
||||
}
|
||||
|
||||
exports = module.exports;
|
||||
|
||||
if (!exports) return;
|
||||
|
||||
// There are (at the time of writing) 11 modules exporting the window
|
||||
// Make these non enumerable to improve webpack search performance
|
||||
if (exports === window) {
|
||||
|
@ -226,11 +231,9 @@ function patchPush(webpackGlobal: any) {
|
|||
Object.defineProperty(webpackGlobal, "push", {
|
||||
get: () => handlePush,
|
||||
set(v) {
|
||||
Object.defineProperty(this, "push", {
|
||||
value: v,
|
||||
configurable: true
|
||||
});
|
||||
patchPush(this);
|
||||
delete webpackGlobal.push;
|
||||
webpackGlobal.push = v;
|
||||
patchPush(webpackGlobal);
|
||||
},
|
||||
configurable: true
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue