Skip to content

Commit 350096c

Browse files
committed
FIX: Hotfix migration failure from 2.0.5
1 parent 76755ce commit 350096c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/popup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function sessionToButton(i18n : I18n, settings : Settings, session : chrome.sess
261261

262262
async function getSessionNodes(i18n : I18n, settings : Settings) : Promise<Node[]> {
263263
return (await Chrome.sessions.getRecent({ }))
264-
.slice(0, settings.tabCount || 25)
264+
.slice(0, (settings.tabCount | 0) || 25)
265265
.map(session => sessionToButton(i18n, settings, session));
266266
}
267267

@@ -283,7 +283,7 @@ async function getHistoryNodes(settings : Settings) {
283283
text: "",
284284
startTime: timestamp - 1000 * 3600 * 24 * 30,
285285
endTime: timestamp,
286-
maxResults: settings.historyCount
286+
maxResults: settings.historyCount | 0
287287
})
288288
return results.map(result => {
289289
const tmp = { ... result, preferSelect : settings.preferSelect }

0 commit comments

Comments
 (0)