diff --git a/src/background/plugins.js b/src/background/plugins.js index e6f417b..e641716 100644 --- a/src/background/plugins.js +++ b/src/background/plugins.js @@ -168,6 +168,8 @@ export default { }, 'bookmarks': { async item(query) { + if (!query) return []; + const bookmarkTreeNodes = await new Promise(resolve => chrome.bookmarks.search(query, resolve) );