Skip to content

Commit

Permalink
fix: correctly start and stop autolock timer
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Sep 18, 2020
1 parent b97f7c6 commit c705b5b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/services/passcodeManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dist/javascripts/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/javascripts/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit c705b5b

Please sign in to comment.