synchronize scp and write

This commit is contained in:
Snarling
2022-08-17 18:55:12 -04:00
parent 95a1c18139
commit f6a8d5d337
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export async function compile(player: IPlayer, script: Script, scripts: Script[]
// but not really behaves like import. Particularly, it cannot
// load fully dynamic content. So we hide the import from webpack
// by placing it inside an eval call.
await script.updateRamUsage(player, scripts);
script.updateRamUsage(player, scripts);
const uurls = _getScriptUrls(script, scripts, []);
const url = uurls[uurls.length - 1].url;
if (script.url && script.url !== url) {