This commit is contained in:
rizrmd 2024-05-19 19:55:55 +07:00
parent 53768ba0d7
commit fe92fa4ab0
9 changed files with 8 additions and 7 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -93,7 +93,8 @@ export const devItem = (
vbuilt = vbuilt.substring(0, vbuilt.length - ";\n".length);
}
if (vbuilt && vbuilt === v.value.trim()) {
result[k] = { mode: "string", value: JSON.parse(v.value) };
const fn = new Function(`return ${v.value}`);
result[k] = { mode: "string", value: fn() };
} else {
result[k] = {
mode: "raw",