diff --git a/firefox/background.js b/firefox/background.js index cc8e9f5..6a8f61e 100644 --- a/firefox/background.js +++ b/firefox/background.js @@ -428,7 +428,7 @@ browser.runtime.onMessage.addListener((message, sender, sendResponse) => { closeCurrentTab(); break; case "search-history": - browser.history.search({text:message.query, maxResults:1000, startTime:31536000000*5}).then((data) => { + browser.history.search({text:message.query, maxResults:9e9, startTime:0}).then((data) => { data.forEach((action, index) => { action.type = "history"; action.emoji = true; diff --git a/src/background.js b/src/background.js index 467a2ad..f3f3e74 100644 --- a/src/background.js +++ b/src/background.js @@ -183,7 +183,7 @@ chrome.commands.onCommand.addListener((command) => { chrome.tabs.sendMessage(response.id, {request: "open-omni"}); } else { chrome.tabs.create({ - url: "./newtab.html" + url: "./newtab.html" }).then(() => { newtaburl = response.url; chrome.tabs.remove(response.id); @@ -243,7 +243,7 @@ const getTabs = () => { // Get bookmarks to populate in the actions const getBookmarks = () => { const process_bookmark = (bookmarks) => { - for (const bookmark of bookmarks) { + for (const bookmark of bookmarks) { if (bookmark.url) { actions.push({title:bookmark.title, desc:"Bookmark", id:bookmark.id, url:bookmark.url, type:"bookmark", action:"bookmark", emoji:true, emojiChar:"⭐️", keycheck:false}) } @@ -430,7 +430,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { closeCurrentTab(); break; case "search-history": - chrome.history.search({text:message.query, maxResults:1000, startTime:31536000000*5}).then((data) => { + chrome.history.search({text:message.query, maxResults:0, startTime:0}).then((data) => { data.forEach((action, index) => { action.type = "history"; action.emoji = true;