From c9e3eeedad67649d9b7aec8897b738d0ad63ec1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Jul 2019 12:16:34 +0200 Subject: Lazy load client script scopes --- client/src/app/videos/+video-watch/video-watch.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts') 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 0d9b6d680..228c45a06 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -103,8 +103,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { } async ngOnInit () { - this.pluginService.loadPluginsByScope('video-watch') - this.configSub = this.serverService.configLoaded .subscribe(() => { if ( @@ -133,7 +131,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.theaterEnabled = getStoredTheater() - this.hooks.runAction('action:video-watch.init') + this.hooks.runAction('action:video-watch.init', 'video-watch') } ngOnDestroy () { @@ -497,7 +495,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.setOpenGraphTags() this.checkUserRating() - this.hooks.runAction('action:video-watch.video.loaded') + this.hooks.runAction('action:video-watch.video.loaded', 'video-watch') } private setRating (nextRating: UserVideoRateType) { -- cgit v1.2.3