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 { } ngOnInit () { + document.getElementById('incompatible-browser').className += 'browser-ok' + const pathname = window.location.pathname if (!pathname || pathname === '/') { 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 { shortVideoDescription: string videoHTMLDescription = '' likesBarTooltipText = '' + hasAlreadyAcceptedPrivacyConcern = false - private hasAlreadyAcceptedPrivacyConcern = false private otherVideos: Video[] = [] private paramsSub: Subscription @@ -260,6 +260,11 @@ export class VideoWatchComponent implements OnInit, OnDestroy { ) } + acceptedPrivacyConcern () { + localStorage.setItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY, 'true') + this.hasAlreadyAcceptedPrivacyConcern = true + } + private updateVideoDescription (description: string) { this.video.description = description this.setVideoDescriptionHTML() @@ -470,9 +475,4 @@ export class VideoWatchComponent implements OnInit, OnDestroy { // Be sure the autoPlay is set to false return this.user.autoPlayVideo !== false } - - private acceptedPrivacyConcern () { - localStorage.setItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY, 'true') - this.hasAlreadyAcceptedPrivacyConcern = true - } } diff --git a/client/src/index.html b/client/src/index.html index a824a39e2..cd9f76cf9 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -34,6 +34,21 @@
+ + + +