unload video data on leaving

This commit is contained in:
ThaUnknown 2020-11-08 18:38:04 +01:00
parent 0ef860d015
commit fc6029bf64

View file

@ -3,6 +3,7 @@ window.onbeforeunload = () => {
client.torrents[0] ? client.torrents[0].store.destroy() : ""
client.torrents[0] ? client.torrents[0].destroy() : ""
client.destroy()
resetVideo()
}
const announceList = [