fix: correctly start and stop autolock timer

This commit is contained in:
Baptiste Grob
2020-09-18 12:17:14 +02:00
parent b97f7c686d
commit c705b5b4db
5 changed files with 5 additions and 4 deletions

View File

@@ -271,6 +271,7 @@ export class PasscodeManager {
};
this.lockAfterDate = addToNow(interval / MillisecondsPerSecond);
clearTimeout(this.lockTimeout);
this.lockTimeout = setTimeout(() => {
this.lockApplication();
// We don't need to look at this anymore since we've succeeded with timeout lock

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.4.4",
"version": "3.4.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.4.4",
"version": "3.4.6",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",