From bb48d17f812123fe29682cd35f121573a897104f Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 15 Jul 2024 12:48:15 +0200 Subject: [PATCH] feat(ux): remember time code when switching between audio/video mode --- src/components/WatchVideo.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index c76548bd..9b26dbed 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -344,6 +344,7 @@ export default { toggleListenUrl(_this) { const url = new URL(window.location.href); url.searchParams.set("listen", _this.isListening ? "0" : "1"); + url.searchParams.set("t", Math.floor(this.currentTime)); return url.pathname + url.search; }, isEmbed(_this) {