From 0eb5b8dcd94453e0aed45001e29761bd1d6c0b0e Mon Sep 17 00:00:00 2001 From: sowgro Date: Sun, 6 Oct 2024 01:06:17 -0400 Subject: log bookmark tree to console --- bookmarks-home/src/main.tsx | 16 ++++++++++------ bookmarks-home/vite.config.ts | 6 +++++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/bookmarks-home/src/main.tsx b/bookmarks-home/src/main.tsx index 71fc560..f2d58d4 100644 --- a/bookmarks-home/src/main.tsx +++ b/bookmarks-home/src/main.tsx @@ -9,9 +9,13 @@ createRoot(document.getElementById('root')!).render( , ) -chrome.bookmarks.create( - {'parentId': bookmarksBar.id, 'title': 'Bookmarks Extension'}, - function(newFolder) { - console.log("added folder: " + newFolder.title); - }, -); \ No newline at end of file +chrome.bookmarks.getTree((tree) => { + console.log(tree) +}); + +// chrome.bookmarks.create( +// {'parentId': '0', 'title': 'Bookmarks Extension'}, +// function (newFolder) { +// console.log("added folder: " + newFolder.title); +// }, +// ); \ No newline at end of file diff --git a/bookmarks-home/vite.config.ts b/bookmarks-home/vite.config.ts index 5a33944..0eaa701 100644 --- a/bookmarks-home/vite.config.ts +++ b/bookmarks-home/vite.config.ts @@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], -}) + build: { + cssMinify: false, + minify: false, + }, +}) \ No newline at end of file -- cgit v1.2.3