refactor(web): dependency management (#2386)

This commit is contained in:
Mo
2023-08-05 12:48:39 -05:00
committed by GitHub
parent b07da5b663
commit d8d4052a52
274 changed files with 4065 additions and 3873 deletions

View File

@@ -21,7 +21,7 @@ const STORAGE_KEY_AUTOLOCK_INTERVAL = 'AutoLockIntervalKey'
export class AutolockService extends AbstractService {
private unsubApp!: () => void
private pollInterval: any
private pollInterval: ReturnType<typeof setInterval> | undefined
private lastFocusState?: 'hidden' | 'visible'
private lockAfterDate?: Date
@@ -100,7 +100,7 @@ export class AutolockService extends AbstractService {
*/
beginPolling() {
this.pollInterval = setInterval(async () => {
const locked = await this.application.isLocked()
const locked = await this.application.protections.isLocked()
if (!locked && this.lockAfterDate && new Date() > this.lockAfterDate) {
this.lockApplication()
}