Skip to content

Commit

Permalink
fix: autolock polling for desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed Jun 16, 2021
1 parent cba9a52 commit 184ce19
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/assets/javascripts/services/autolock_service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ApplicationService } from '@standardnotes/snjs';
import { isDesktopApplication } from '@/utils';

const MILLISECONDS_PER_SECOND = 1000;
const POLL_INTERVAL = 50;
Expand All @@ -18,9 +17,7 @@ export class AutolockService extends ApplicationService {
private lockAfterDate?: Date

onAppLaunch() {
if (!isDesktopApplication()) {
this.beginPolling();
}
this.beginPolling();
return super.onAppLaunch();
}

Expand Down

0 comments on commit 184ce19

Please sign in to comment.