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