Skip to content

Commit e5475fc

Browse files
author
thyttan
committed
messagegui: fix default autoOpen value if undefined
1 parent ac12052 commit e5475fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/messagegui/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports.listener = function(type, msg) {
3535
}
3636

3737
const appSettings = require("Storage").readJSON("messages.settings.json", 1) || {};
38-
const autoOpen = appSettings.autoOpen;
38+
const autoOpen = appSettings.autoOpen ?? 1;
3939
let loadMessages = (
4040
(autoOpen === 1 && Bangle.CLOCK) || (autoOpen === 2 && Bangle.isLocked()) || autoOpen === 3 ||
4141
msg.important

0 commit comments

Comments
 (0)