After deleting torrent, remove just the player from forward stack

This commit is contained in:
Feross Aboukhadijeh
2016-05-19 18:56:10 -07:00
parent 8f39f8a23e
commit 264c035ef7

View File

@@ -1091,7 +1091,7 @@ function deleteTorrent (infoHash) {
var index = state.saved.torrents.findIndex((x) => x.infoHash === infoHash)
if (index > -1) state.saved.torrents.splice(index, 1)
saveStateThrottled()
state.location.clearForward() // prevent user from going forward to a deleted torrent
state.location.clearForward('player') // prevent user from going forward to a deleted torrent
sound.play('DELETE')
}