This commit is contained in:
Rizky 2024-03-21 00:13:42 +07:00
parent 2a7617c28a
commit 1662c83592
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export const applyEnv = async (p: PG) => {
const url = `/prod/${p.site.id}/_prasi/code/index.js`;
const fn = new Function("callback", `import("${url}").then(callback)`);
await new Promise((resolve) => {
await new Promise<void>((resolve) => {
fn((exports: any) => {
for (const [k, v] of Object.entries(exports)) {
w[k] = v;