File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -401,10 +401,11 @@ function getChildren(folderId) {
401401
402402function 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
737738function 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' ) ] ;
You can’t perform that action at this time.
0 commit comments