paperless-ngx/src-ui/src/app/app.component.ts

18 lines
420 B
TypeScript
Raw Normal View History

2020-10-27 01:10:18 +01:00
import { Component } from '@angular/core';
2020-12-27 23:05:19 -08:00
import { AppViewService } from './services/app-view.service';
2020-10-27 01:10:18 +01:00
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
2020-10-27 01:10:18 +01:00
})
export class AppComponent {
2020-12-31 15:07:35 +01:00
2020-12-27 23:05:19 -08:00
constructor (appViewService: AppViewService) {
2020-12-31 15:07:35 +01:00
(window as any).pdfWorkerSrc = '/assets/js/pdf.worker.min.js';
appViewService.updateDarkModeSettings()
2020-10-27 01:10:18 +01:00
}
}