mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-20 14:43:48 +01:00
revoke-fix
This commit is contained in:
parent
6dd9a4e188
commit
695bca73b8
@ -30,6 +30,7 @@ export async function compile(player: IPlayer, script: Script, scripts: Script[]
|
|||||||
const uurls = _getScriptUrls(script, scripts, []);
|
const uurls = _getScriptUrls(script, scripts, []);
|
||||||
const url = uurls[uurls.length - 1].url;
|
const url = uurls[uurls.length - 1].url;
|
||||||
if (script.url && script.url !== url) {
|
if (script.url && script.url !== url) {
|
||||||
|
URL.revokeObjectURL(script.url);
|
||||||
// Thoughts: Should we be revoking any URLs here?
|
// Thoughts: Should we be revoking any URLs here?
|
||||||
// If a script is modified repeatedly between two states,
|
// If a script is modified repeatedly between two states,
|
||||||
// we could reuse the blob at a later time.
|
// we could reuse the blob at a later time.
|
||||||
|
Loading…
Reference in New Issue
Block a user