Skip to content

Commit

Permalink
fix default autolock value not being enforced (#1251)
Browse files Browse the repository at this point in the history
  • Loading branch information
mymindstorm authored Aug 14, 2024
1 parent 55b7624 commit 18f0544
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,11 @@ async function setAutolock() {
return;
}

// Set default autolock value
if (UserSettings.items.autolock === undefined) {
UserSettings.items.autolock = 30;
}

if (Number(UserSettings.items.autolock) > 0) {
chrome.alarms.create("autolock", {
delayInMinutes: Number(UserSettings.items.autolock),
Expand Down

0 comments on commit 18f0544

Please sign in to comment.