Skip to content

Commit a13d1ba

Browse files
committed
add test history fallback value
1 parent 8414e7b commit a13d1ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.jxa.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ function convertMessageTimestamp(timestamp, string = false) {
263263
}
264264

265265
function getMessageHistoryOption() {
266-
const HISTORY = App.systemAttribute('alfred_mm_message_history');
267-
return parseInt(HISTORY);
266+
let history = App.systemAttribute('alfred_mm_message_history');
267+
history = parseInt(history);
268+
269+
return isNaN(history) ? 14 : history;
268270
}
269271

270272
function getMessages() {

0 commit comments

Comments
 (0)