From 184ce19ad70cae6a902f0846b1e6a9c50d645b5e Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Wed, 16 Jun 2021 19:40:33 -0300 Subject: [PATCH] fix: autolock polling for desktop --- app/assets/javascripts/services/autolock_service.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/services/autolock_service.ts b/app/assets/javascripts/services/autolock_service.ts index 4cfe8f9f1..8c967f48c 100644 --- a/app/assets/javascripts/services/autolock_service.ts +++ b/app/assets/javascripts/services/autolock_service.ts @@ -1,5 +1,4 @@ import { ApplicationService } from '@standardnotes/snjs'; -import { isDesktopApplication } from '@/utils'; const MILLISECONDS_PER_SECOND = 1000; const POLL_INTERVAL = 50; @@ -18,9 +17,7 @@ export class AutolockService extends ApplicationService { private lockAfterDate?: Date onAppLaunch() { - if (!isDesktopApplication()) { - this.beginPolling(); - } + this.beginPolling(); return super.onAppLaunch(); }