From 629303411c09996c4d8712f94d117c492b048309 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 29 Aug 2022 18:49:31 +0530 Subject: [PATCH] Add timestamp only if gt 0. --- src/components/ShareModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ShareModal.vue b/src/components/ShareModal.vue index 1274ee56..47cfb212 100644 --- a/src/components/ShareModal.vue +++ b/src/components/ShareModal.vue @@ -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; }, },