aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-25 10:57:23 +0200
committerChocobozzz <me@florianbigard.com>2019-10-25 10:57:23 +0200
commita2ffd046d61fb6424825f183af195ce1df2e156f (patch)
treec72a0d5fd38765effa3dcf79e11e55ec9e48f090 /client/src/app/app.component.ts
parentce78f1f6f04e196aa24ebb6737b3368424509ce3 (diff)
downloadPeerTube-a2ffd046d61fb6424825f183af195ce1df2e156f.tar.gz
PeerTube-a2ffd046d61fb6424825f183af195ce1df2e156f.tar.zst
PeerTube-a2ffd046d61fb6424825f183af195ce1df2e156f.zip
Speedup theme injection
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 6b18e5feb..1724bbd1a 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -71,6 +71,9 @@ export class AppComponent implements OnInit {
71 ngOnInit () { 71 ngOnInit () {
72 document.getElementById('incompatible-browser').className += ' browser-ok' 72 document.getElementById('incompatible-browser').className += ' browser-ok'
73 73
74 this.loadPlugins()
75 this.themeService.initialize()
76
74 this.authService.loadClientCredentials() 77 this.authService.loadClientCredentials()
75 78
76 if (this.isUserLoggedIn()) { 79 if (this.isUserLoggedIn()) {
@@ -86,9 +89,6 @@ export class AppComponent implements OnInit {
86 this.serverService.loadVideoPrivacies() 89 this.serverService.loadVideoPrivacies()
87 this.serverService.loadVideoPlaylistPrivacies() 90 this.serverService.loadVideoPlaylistPrivacies()
88 91
89 this.loadPlugins()
90 this.themeService.initialize()
91
92 // Do not display menu on small screens 92 // Do not display menu on small screens
93 if (this.screenService.isInSmallView()) { 93 if (this.screenService.isInSmallView()) {
94 this.isMenuDisplayed = false 94 this.isMenuDisplayed = false