Remove resume parameter when sharing a video
This commit is contained in:
parent
3fa9efa0c7
commit
5289137643
|
@ -1,8 +1,6 @@
|
||||||
import { Component, ElementRef, Input, ViewChild } from '@angular/core'
|
import { Component, ElementRef, Input, ViewChild } from '@angular/core'
|
||||||
import { Notifier } from '@app/core'
|
|
||||||
import { VideoDetails } from '../../../shared/video/video-details.model'
|
import { VideoDetails } from '../../../shared/video/video-details.model'
|
||||||
import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils'
|
import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils'
|
||||||
import { I18n } from '@ngx-translate/i18n-polyfill'
|
|
||||||
import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap'
|
import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap'
|
||||||
import { VideoCaption } from '@shared/models'
|
import { VideoCaption } from '@shared/models'
|
||||||
import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model'
|
import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model'
|
||||||
|
|
|
@ -51,8 +51,9 @@ function buildVideoLink (options: {
|
||||||
: window.location.origin + window.location.pathname.replace('/embed/', '/watch/')
|
: window.location.origin + window.location.pathname.replace('/embed/', '/watch/')
|
||||||
|
|
||||||
const params = new URLSearchParams(window.location.search)
|
const params = new URLSearchParams(window.location.search)
|
||||||
// Remove this unused parameter when we are on a playlist page
|
// Remove these unused parameters when we are on a playlist page
|
||||||
params.delete('videoId')
|
params.delete('videoId')
|
||||||
|
params.delete('resume')
|
||||||
|
|
||||||
if (options.startTime) {
|
if (options.startTime) {
|
||||||
const startTimeInt = Math.floor(options.startTime)
|
const startTimeInt = Math.floor(options.startTime)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user