okay CodiumAI
This commit is contained in:
parent
1a1e5c2e1d
commit
6cc40eb095
|
@ -507,17 +507,24 @@ async function runtime(token: string) {
|
||||||
try {
|
try {
|
||||||
let result = null as any;
|
let result = null as any;
|
||||||
|
|
||||||
if (searchType === "webpackDependantLazy" || searchType === "webpackDependantLazyComponent") {
|
switch (searchType) {
|
||||||
|
case "webpackDependantLazy":
|
||||||
|
case "webpackDependantLazyComponent": {
|
||||||
const [factory] = args;
|
const [factory] = args;
|
||||||
result = factory();
|
result = factory();
|
||||||
} else if (searchType === "extractAndLoadChunks") {
|
break;
|
||||||
|
}
|
||||||
|
case "extractAndLoadChunks": {
|
||||||
const [code, matcher] = args;
|
const [code, matcher] = args;
|
||||||
|
|
||||||
const module = Vencord.Webpack.findModuleFactory(...code);
|
const module = Vencord.Webpack.findModuleFactory(...code);
|
||||||
if (module) {
|
if (module) {
|
||||||
result = module.toString().match(Vencord.Util.canonicalizeMatch(matcher));
|
result = module.toString().match(Vencord.Util.canonicalizeMatch(matcher));
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
const findResult = args.shift();
|
const findResult = args.shift();
|
||||||
|
|
||||||
if (findResult != null) {
|
if (findResult != null) {
|
||||||
|
@ -533,6 +540,9 @@ async function runtime(token: string) {
|
||||||
result = findResult.$$vencordInner();
|
result = findResult.$$vencordInner();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
|
|
Loading…
Reference in a new issue