Skip to content

Commit

Permalink
Bookmarks stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
madprops committed Sep 25, 2024
1 parent 5e01784 commit 182151c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions js/main/bookmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,17 +394,13 @@ App.search_bookmarks_folder = async (callback) => {

App.show_prompt({
placeholder: `Search Folder`,
on_submit: (title) => {
App.do_search_bookmarks_folder(title, callback)
on_submit: async (title) => {
let folders = await App.get_bookmark_folders(title)
App.do_select_bookmarks_folder({folders, callback, include_all: true})
}
})
}

App.do_search_bookmarks_folder = async (title, callback) => {
let folders = await App.get_bookmark_folders(title)
App.do_select_bookmarks_folder({folders, callback, include_all: false})
}

App.request_bookmarks = () => {
browser.runtime.sendMessage({action: `refresh_bookmarks`})
}
Expand Down

0 comments on commit 182151c

Please sign in to comment.