Skip to content

Commit

Permalink
fix(#5): dont remove sibling bookmarks on import
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlogius committed Jul 7, 2023
1 parent c56217e commit 6273138
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions import-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ async function initSelect() {

async function importData(bookmarkId, data) {
try {
const bookmarkItem = (await browser.bookmarks.getSubTree(bookmarkId))[0];
// remove all children (+descendents)
if (bookmarkItem.children) {
for (var child of bookmarkItem.children) {
browser.bookmarks.removeTree(child.id);
}
}
// add new childen
importJSON(data, bookmarkId);
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"manifest_version": 2,
"name": "Bookmark Branch Porter",
"permissions": ["bookmarks"],
"version": "1.2.9"
"version": "1.2.10"
}

0 comments on commit 6273138

Please sign in to comment.