aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/app.component.ts2
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts12
2 files changed, 8 insertions, 6 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index f95103365..5d8e8badf 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -44,6 +44,8 @@ export class AppComponent implements OnInit {
44 } 44 }
45 45
46 ngOnInit () { 46 ngOnInit () {
47 document.getElementById('incompatible-browser').className += 'browser-ok'
48
47 const pathname = window.location.pathname 49 const pathname = window.location.pathname
48 if (!pathname || pathname === '/') { 50 if (!pathname || pathname === '/') {
49 this.redirectService.redirectToHomepage() 51 this.redirectService.redirectToHomepage()
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 5750c5fca..7951e3927 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -49,8 +49,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
49 shortVideoDescription: string 49 shortVideoDescription: string
50 videoHTMLDescription = '' 50 videoHTMLDescription = ''
51 likesBarTooltipText = '' 51 likesBarTooltipText = ''
52 hasAlreadyAcceptedPrivacyConcern = false
52 53
53 private hasAlreadyAcceptedPrivacyConcern = false
54 private otherVideos: Video[] = [] 54 private otherVideos: Video[] = []
55 private paramsSub: Subscription 55 private paramsSub: Subscription
56 56
@@ -260,6 +260,11 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
260 ) 260 )
261 } 261 }
262 262
263 acceptedPrivacyConcern () {
264 localStorage.setItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY, 'true')
265 this.hasAlreadyAcceptedPrivacyConcern = true
266 }
267
263 private updateVideoDescription (description: string) { 268 private updateVideoDescription (description: string) {
264 this.video.description = description 269 this.video.description = description
265 this.setVideoDescriptionHTML() 270 this.setVideoDescriptionHTML()
@@ -470,9 +475,4 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
470 // Be sure the autoPlay is set to false 475 // Be sure the autoPlay is set to false
471 return this.user.autoPlayVideo !== false 476 return this.user.autoPlayVideo !== false
472 } 477 }
473
474 private acceptedPrivacyConcern () {
475 localStorage.setItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY, 'true')
476 this.hasAlreadyAcceptedPrivacyConcern = true
477 }
478} 478}