Not sure why Typescript complained about this

This commit is contained in:
Michael Shamoon 2021-01-01 12:49:48 -08:00
parent 3d2d9cb3a2
commit 1234634ba3
2 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ import { AppViewService } from './services/app-view.service';
export class AppComponent {
constructor (appViewService: AppViewService) {
appViewService.updateDarkModeSettings()
(window as any).pdfWorkerSrc = '/assets/js/pdf.worker.min.js';
appViewService.updateDarkModeSettings()
}

View File

@ -18,7 +18,7 @@ export class AppViewService {
this.updateDarkModeSettings()
}
updateDarkModeSettings() {
updateDarkModeSettings(): void {
let darkModeUseSystem = this.settings.get(SETTINGS_KEYS.DARK_MODE_USE_SYSTEM)
let darkModeEnabled = this.settings.get(SETTINGS_KEYS.DARK_MODE_ENABLED)