From 5289137643955895c2dc3399e5bc446f0614e208 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 10 Feb 2020 16:49:40 +0100 Subject: [PATCH] Remove resume parameter when sharing a video --- .../src/app/videos/+video-watch/modal/video-share.component.ts | 2 -- client/src/assets/player/utils.ts | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/videos/+video-watch/modal/video-share.component.ts index a2b38b3a0..6bc9b09fa 100644 --- a/client/src/app/videos/+video-watch/modal/video-share.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-share.component.ts @@ -1,8 +1,6 @@ import { Component, ElementRef, Input, ViewChild } from '@angular/core' -import { Notifier } from '@app/core' import { VideoDetails } from '../../../shared/video/video-details.model' import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' -import { I18n } from '@ngx-translate/i18n-polyfill' import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap' import { VideoCaption } from '@shared/models' import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index 38f2482eb..fa902e1f1 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts @@ -51,8 +51,9 @@ function buildVideoLink (options: { : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') 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('resume') if (options.startTime) { const startTimeInt = Math.floor(options.startTime)