mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-05-12 20:34:32 +02:00
Free objects at end of scope
This commit is contained in:
parent
b57c5e96eb
commit
e7a8528f0a
@ -93,8 +93,6 @@ window.Worker = class Worker extends window.Worker {
|
|||||||
new Blob([wrapperScript], { type: "text/javascript" })
|
new Blob([wrapperScript], { type: "text/javascript" })
|
||||||
);
|
);
|
||||||
super(wrapperScriptURL, options);
|
super(wrapperScriptURL, options);
|
||||||
URL.revokeObjectURL(newScriptURL);
|
|
||||||
URL.revokeObjectURL(wrapperScriptURL);
|
|
||||||
pageState.twitchWorker = this;
|
pageState.twitchWorker = this;
|
||||||
this.addEventListener("message", event => {
|
this.addEventListener("message", event => {
|
||||||
if (
|
if (
|
||||||
@ -104,6 +102,8 @@ window.Worker = class Worker extends window.Worker {
|
|||||||
window.postMessage(event.data);
|
window.postMessage(event.data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
URL.revokeObjectURL(newScriptURL);
|
||||||
|
URL.revokeObjectURL(wrapperScriptURL);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user