File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -732,19 +732,21 @@ function createDial() {
732732}
733733
734734function openAllTabs ( ) {
735- let folder = document . getElementById ( currentFolder ) ;
736- let dials = [ ...folder ?. getElementsByClassName ( 'tile' ) ] ;
737-
738- console . log ( dials ) ;
739-
740- dials ?. forEach ( dial => {
741- if ( dial . href ) {
742- browser . tabs . create ( {
743- url : dial . href ,
744- active : false
745- } ) ;
746- }
747- } ) ;
735+ let currentFolderId = ( currentFolder === speedDialId ) ? 'wrap' : currentFolder ;
736+ let folder = document . getElementById ( currentFolderId ) ;
737+
738+ if ( folder ) {
739+ let dials = [ ...folder . getElementsByClassName ( 'tile' ) ] ;
740+
741+ dials ?. forEach ( dial => {
742+ if ( dial . href ) {
743+ browser . tabs . create ( {
744+ url : dial . href ,
745+ active : false
746+ } ) ;
747+ }
748+ } ) ;
749+ }
748750}
749751
750752function offscreenCanvasShim ( w , h ) {
You can’t perform that action at this time.
0 commit comments