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