diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-10 16:49:40 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-10 16:49:40 +0100 |
commit | 5289137643955895c2dc3399e5bc446f0614e208 (patch) | |
tree | 57ce60d57bc8650ed61f7fd7d2903c4df155ad26 /client | |
parent | 3fa9efa0c72af60258a6b440de08f267b07f9339 (diff) | |
download | PeerTube-5289137643955895c2dc3399e5bc446f0614e208.tar.gz PeerTube-5289137643955895c2dc3399e5bc446f0614e208.tar.zst PeerTube-5289137643955895c2dc3399e5bc446f0614e208.zip |
Remove resume parameter when sharing a video
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/videos/+video-watch/modal/video-share.component.ts | 2 | ||||
-rw-r--r-- | 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 @@ | |||
1 | import { Component, ElementRef, Input, ViewChild } from '@angular/core' | 1 | import { Component, ElementRef, Input, ViewChild } from '@angular/core' |
2 | import { Notifier } from '@app/core' | ||
3 | import { VideoDetails } from '../../../shared/video/video-details.model' | 2 | import { VideoDetails } from '../../../shared/video/video-details.model' |
4 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' | 3 | import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
6 | import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap' | 4 | import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap' |
7 | import { VideoCaption } from '@shared/models' | 5 | import { VideoCaption } from '@shared/models' |
8 | import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' | 6 | 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: { | |||
51 | : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') | 51 | : window.location.origin + window.location.pathname.replace('/embed/', '/watch/') |
52 | 52 | ||
53 | const params = new URLSearchParams(window.location.search) | 53 | const params = new URLSearchParams(window.location.search) |
54 | // Remove this unused parameter when we are on a playlist page | 54 | // Remove these unused parameters when we are on a playlist page |
55 | params.delete('videoId') | 55 | params.delete('videoId') |
56 | params.delete('resume') | ||
56 | 57 | ||
57 | if (options.startTime) { | 58 | if (options.startTime) { |
58 | const startTimeInt = Math.floor(options.startTime) | 59 | const startTimeInt = Math.floor(options.startTime) |