apply styles on start and to the terminal iframe (fixes #134)

This commit is contained in:
Eugene Pankov
2017-07-20 23:08:46 +02:00
parent ed0bfb39f3
commit 5f5772501b
2 changed files with 3 additions and 6 deletions

View File

@@ -13,7 +13,6 @@ export class ThemesService {
this.applyCurrentTheme()
config.changed$.subscribe(() => {
this.applyCurrentTheme()
document.querySelector('style#custom-css').innerHTML = config.store.appearance.css
})
}
@@ -32,6 +31,7 @@ export class ThemesService {
document.querySelector('head').appendChild(this.styleElement)
}
this.styleElement.textContent = theme.css
document.querySelector('style#custom-css').innerHTML = this.config.store.appearance.css
}
applyCurrentTheme (): void {