mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-26 16:07:33 +01:00
round 2
This commit is contained in:
parent
695bca73b8
commit
3e6d1f6d95
@ -43,8 +43,9 @@ export async function compile(player: IPlayer, script: Script, scripts: Script[]
|
||||
// });
|
||||
// }
|
||||
}
|
||||
script.url = url;
|
||||
script.module = new Promise((resolve) => resolve(eval("import(url)")));
|
||||
if (script.dependencies.length > 0) script.dependencies.forEach((dep) => URL.revokeObjectURL(dep.url));
|
||||
script.url = uurls[uurls.length - 1].url;
|
||||
script.module = new Promise((resolve) => resolve(eval("import(uurls[uurls.length - 1].url)")));
|
||||
script.dependencies = uurls;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user