aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 548173f61..0ebd628fc 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -72,6 +72,7 @@ export class AppComponent implements OnInit {
72 this.serverService.loadVideoPlaylistPrivacies() 72 this.serverService.loadVideoPlaylistPrivacies()
73 73
74 this.loadPlugins() 74 this.loadPlugins()
75 this.themeService.initialize()
75 76
76 // Do not display menu on small screens 77 // Do not display menu on small screens
77 if (this.screenService.isInSmallView()) { 78 if (this.screenService.isInSmallView()) {
@@ -237,11 +238,7 @@ export class AppComponent implements OnInit {
237 new Hotkey('g u', (event: KeyboardEvent): boolean => { 238 new Hotkey('g u', (event: KeyboardEvent): boolean => {
238 this.router.navigate([ '/videos/upload' ]) 239 this.router.navigate([ '/videos/upload' ])
239 return false 240 return false
240 }, undefined, this.i18n('Go to the videos upload page')), 241 }, undefined, this.i18n('Go to the videos upload page'))
241 new Hotkey('shift+t', (event: KeyboardEvent): boolean => {
242 this.themeService.toggleDarkTheme()
243 return false
244 }, undefined, this.i18n('Toggle Dark theme'))
245 ]) 242 ])
246 } 243 }
247} 244}