Merge pull request #787 from GilgusMaximus/development

Fixing wrong url parameter for YouTube video links with timestamp
This commit is contained in:
Luca Hohmann 2020-11-15 13:42:17 +01:00 committed by GitHub
commit 83f5dea8d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ export default Vue.extend({
}, },
getFinalUrl(url) { getFinalUrl(url) {
if (url.indexOf('?') === -1) {
return this.includeTimestamp ? `${url}?t=${this.getTimestamp()}` : url
}
return this.includeTimestamp ? `${url}&t=${this.getTimestamp()}` : url return this.includeTimestamp ? `${url}&t=${this.getTimestamp()}` : url
}, },