|
|
@ -38,11 +38,8 @@ def init |
|
|
|
Frequencies = frequencies or {} |
|
|
|
|
|
|
|
global.chrome.bookmarks.getTree! do(bookmarks) |
|
|
|
# Bookmarks Bar folder is guaranteed to be the first child of the bookmarks tree root |
|
|
|
const bookmarkBarTitle = bookmarks[0].children[0].title |
|
|
|
|
|
|
|
const folder = api.bfs bookmarkBarTitle, bookmarks |
|
|
|
state.links = api.traverse folder |
|
|
|
const bookmarks-bar = bookmarks[0].children[0].children |
|
|
|
state.links = api.traverse bookmarks-bar |
|
|
|
api.sort_links! |
|
|
|
state.loaded = yes |
|
|
|
imba.commit! |
|
|
|