Skip to content

Commit

Permalink
Fix error in Firefox when bookmark search query is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
blenderskool committed Nov 15, 2020
1 parent f9af3ad commit 069e1b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/background/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ export default {
},
'bookmarks': {
async item(query) {
if (!query) return [];

const bookmarkTreeNodes = await new Promise(resolve =>
chrome.bookmarks.search(query, resolve)
);
Expand Down

0 comments on commit 069e1b2

Please sign in to comment.