From 57166f7daadb33d36a0e7b59a16a38f6b41b21f2 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Sun, 28 Jul 2019 05:38:41 +0000 Subject: [PATCH] assets/scripts.js: Remember and restore playback position when reopening Just like the real thing. --- assets/scripts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/scripts.js b/assets/scripts.js index 9307e0b..4861f0c 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -306,6 +306,7 @@ function ontimeupdate(evt) { hash = '#' + hash; lastHash = hash; // suppress onhashchange event location.hash = hash; + ls.place = hash; } } @@ -376,6 +377,8 @@ window.onload = function() { file_selector.style.display = 'none'; if (window.location.hash) playHash(window.location.hash); + else if (ls.place) + playHash(ls.place); else playSegment(null); video_selector.play();