mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-04-29 22:14:27 +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" })
|
||||
);
|
||||
super(wrapperScriptURL, options);
|
||||
URL.revokeObjectURL(newScriptURL);
|
||||
URL.revokeObjectURL(wrapperScriptURL);
|
||||
pageState.twitchWorker = this;
|
||||
this.addEventListener("message", event => {
|
||||
if (
|
||||
@ -104,6 +102,8 @@ window.Worker = class Worker extends window.Worker {
|
||||
window.postMessage(event.data);
|
||||
}
|
||||
});
|
||||
URL.revokeObjectURL(newScriptURL);
|
||||
URL.revokeObjectURL(wrapperScriptURL);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user