Add timestamp only if gt 0.

This commit is contained in:
Kavin 2022-08-29 18:49:31 +05:30
parent 44c66c3336
commit 629303411c
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

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;
},
},