File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
src/browseraction/components/logic Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,16 @@ export const loadSites = async (
6161 lines = shuffle ( lines )
6262 }
6363
64+ if ( selectedContainerId === NEW_CONTAINER_ID ) {
65+ selectedContainerId = (
66+ await browser . contextualIdentities . create ( {
67+ name : 'OMU ' + new Date ( ) . toLocaleString ( ) ,
68+ color : CONTAINER_COLORS [ Math . floor ( Math . random ( ) * CONTAINER_COLORS . length ) ] ,
69+ icon : 'circle'
70+ } )
71+ ) . cookieStoreId
72+ }
73+
6474 const createdTabs : browser . Tabs . Tab [ ] = [ ]
6575 for ( let i = 0 ; i < lines . length ; i ++ ) {
6676 const line = lines [ i ] . trim ( )
@@ -80,16 +90,6 @@ export const loadSites = async (
8090 url = browser . runtime . getURL ( 'lazyloading.html#' ) + url
8191 }
8292
83- if ( selectedContainerId === NEW_CONTAINER_ID ) {
84- selectedContainerId = (
85- await browser . contextualIdentities . create ( {
86- name : 'OMU ' + new Date ( ) . toLocaleString ( ) ,
87- color : CONTAINER_COLORS [ Math . floor ( Math . random ( ) * CONTAINER_COLORS . length ) ] ,
88- icon : 'circle'
89- } )
90- ) . cookieStoreId
91- }
92-
9393 const tabCreateProperties : browser . Tabs . CreateCreatePropertiesType = {
9494 url : isSearchQuery ? 'about:blank' : url ,
9595 active : false
You can’t perform that action at this time.
0 commit comments