Skip to content

Commit 18f0544

Browse files
authored
fix default autolock value not being enforced (#1251)
1 parent 55b7624 commit 18f0544

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/background.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,11 @@ async function setAutolock() {
535535
return;
536536
}
537537

538+
// Set default autolock value
539+
if (UserSettings.items.autolock === undefined) {
540+
UserSettings.items.autolock = 30;
541+
}
542+
538543
if (Number(UserSettings.items.autolock) > 0) {
539544
chrome.alarms.create("autolock", {
540545
delayInMinutes: Number(UserSettings.items.autolock),

0 commit comments

Comments
 (0)