mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
feat(ux): remember time code when switching between audio/video mode
This commit is contained in:
parent
5963dba626
commit
bb48d17f81
1 changed files with 1 additions and 0 deletions
|
@ -344,6 +344,7 @@ export default {
|
||||||
toggleListenUrl(_this) {
|
toggleListenUrl(_this) {
|
||||||
const url = new URL(window.location.href);
|
const url = new URL(window.location.href);
|
||||||
url.searchParams.set("listen", _this.isListening ? "0" : "1");
|
url.searchParams.set("listen", _this.isListening ? "0" : "1");
|
||||||
|
url.searchParams.set("t", Math.floor(this.currentTime));
|
||||||
return url.pathname + url.search;
|
return url.pathname + url.search;
|
||||||
},
|
},
|
||||||
isEmbed(_this) {
|
isEmbed(_this) {
|
||||||
|
|
Loading…
Reference in a new issue