Skip to content

Commit 602c62a

Browse files
fix bulk actions for root folder
1 parent 51ffeff commit 602c62a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,11 @@ function getChildren(folderId) {
401401

402402
function refreshAllThumbnails() {
403403
let urls = [];
404+
let parent = currentFolder ? currentFolder : speedDialId;
404405

405406
hideModals();
406407

407-
browser.bookmarks.getChildren(currentFolder).then(children => {
408+
browser.bookmarks.getChildren(parent).then(children => {
408409
if (children && children.length) {
409410
for (let child of children) {
410411
if (child.url && (child.url.startsWith('https://') || child.url.startsWith('http://'))) {
@@ -735,8 +736,7 @@ function createDial() {
735736
}
736737

737738
function openAllTabs() {
738-
let currentFolderId = (currentFolder === speedDialId) ? 'wrap' : currentFolder;
739-
let folder = document.getElementById(currentFolderId);
739+
let folder = currentFolder ? document.getElementById(currentFolder) : document.getElementById('wrap');
740740

741741
if (folder) {
742742
let dials = [...folder.getElementsByClassName('tile')];

0 commit comments

Comments
 (0)