This commit is contained in:
Nuckyz 2024-05-23 03:39:59 -03:00
parent 688449ed62
commit 66e1db1fdb
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -48,7 +48,7 @@ const modulesProxyhandler: ProxyHandler<WebpackRequire["m"]> = {
Object.defineProperty(Function.prototype, "O", { Object.defineProperty(Function.prototype, "O", {
configurable: true, configurable: true,
set(onChunksLoaded: WebpackRequire["O"]) { set(this: WebpackRequire, onChunksLoaded: WebpackRequire["O"]) {
// When using react devtools or other extensions, or even when discord loads the sentry, we may also catch their webpack here. // When using react devtools or other extensions, or even when discord loads the sentry, we may also catch their webpack here.
// This ensures we actually got the right one // This ensures we actually got the right one
// this.e (wreq.e) is the method for loading a chunk, and only the main webpack has it // this.e (wreq.e) is the method for loading a chunk, and only the main webpack has it
@ -116,7 +116,7 @@ Object.defineProperty(Function.prototype, "O", {
Object.defineProperty(Function.prototype, "m", { Object.defineProperty(Function.prototype, "m", {
configurable: true, configurable: true,
set(originalModules: WebpackRequire["m"]) { set(this: WebpackRequire, originalModules: WebpackRequire["m"]) {
// When using react devtools or other extensions, we may also catch their webpack here. // When using react devtools or other extensions, we may also catch their webpack here.
// This ensures we actually got the right one // This ensures we actually got the right one
const { stack } = new Error(); const { stack } = new Error();