fix: correctly start and stop autolock timer
This commit is contained in:
@@ -271,6 +271,7 @@ export class PasscodeManager {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.lockAfterDate = addToNow(interval / MillisecondsPerSecond);
|
this.lockAfterDate = addToNow(interval / MillisecondsPerSecond);
|
||||||
|
clearTimeout(this.lockTimeout);
|
||||||
this.lockTimeout = setTimeout(() => {
|
this.lockTimeout = setTimeout(() => {
|
||||||
this.lockApplication();
|
this.lockApplication();
|
||||||
// We don't need to look at this anymore since we've succeeded with timeout lock
|
// We don't need to look at this anymore since we've succeeded with timeout lock
|
||||||
|
|||||||
2
dist/javascripts/app.js
vendored
2
dist/javascripts/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/javascripts/app.js.map
vendored
2
dist/javascripts/app.js.map
vendored
File diff suppressed because one or more lines are too long
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "standard-notes-web",
|
"name": "standard-notes-web",
|
||||||
"version": "3.4.4",
|
"version": "3.4.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "standard-notes-web",
|
"name": "standard-notes-web",
|
||||||
"version": "3.4.4",
|
"version": "3.4.6",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user