Add timestamp only if gt 0.

This commit is contained in:
Kavin
2022-08-29 18:49:31 +05:30
parent 44c66c3336
commit 629303411c

View File

@@ -69,7 +69,7 @@ export default {
var href = this.pipedLink
? window.location.origin + "/watch?v=" + this.videoId
: "https://youtu.be/" + this.videoId;
if (this.withTimeCode && this.timeStamp) href += "?t=" + this.timeStamp;
if (this.withTimeCode && this.timeStamp > 0) href += "?t=" + this.timeStamp;
return href;
},
},