feat: 🕒 added sharing video link with timestamp (#72) (#605)

This commit is contained in:
Fergus Lai 2023-03-01 00:03:11 +00:00 committed by GitHub
parent 8073a1a7f5
commit 7d9247af36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -379,7 +379,12 @@ export default {
await Share.share({
title: this.video.title,
text: this.video.title,
url: "https://youtu.be/" + this.$route.query.v,
url:
"https://youtu.be/" +
this.$route.query.v +
"?t=" +
Math.round(this.$refs.player.getPlayer().currentTime) +
"s",
dialogTitle: "Share video",
});
},