diff --git a/package-lock.json b/package-lock.json index 3433af3..d72cee9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "fuzzyhome", "version": "1.0.0", "dependencies": { + "esbuild-darwin-arm64": "^0.15.18", "fzi": "^1.5.0", "imba": "^2.0.0-alpha.225", "lodash": "^4.17.21", @@ -891,7 +892,6 @@ "cpu": [ "arm64" ], - "optional": true, "os": [ "darwin" ], @@ -3438,8 +3438,7 @@ "esbuild-darwin-arm64": { "version": "0.15.18", "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.18.tgz", - "integrity": "sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==", - "optional": true + "integrity": "sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==" }, "esbuild-freebsd-64": { "version": "0.15.18", diff --git a/src/main.imba b/src/main.imba index 12d4486..35db6cf 100644 --- a/src/main.imba +++ b/src/main.imba @@ -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!