@@ -579,7 +579,7 @@ const updateEditors = async (editors: Editors, config: Config) => {
579579
580580const showMode = ( mode ?: Config [ 'mode' ] , view ?: Config [ 'view' ] ) => {
581581 if ( ! mode ) {
582- mode = 'full' ;
582+ mode = getConfig ( ) . mode ;
583583 }
584584 if ( ! view ) {
585585 view = getConfig ( ) . view ;
@@ -1404,7 +1404,7 @@ const applyConfig = async (newConfig: Partial<Config>) => {
14041404 loadSettings ( currentConfig ) ;
14051405 }
14061406 if ( newConfig . mode || newConfig . view ) {
1407- window . deps . showMode (
1407+ window . deps ? .showMode ?. (
14081408 newConfig . mode ?? currentConfig . mode ,
14091409 newConfig . view ?? currentConfig . view ,
14101410 ) ;
@@ -2877,7 +2877,7 @@ const handleEditorTools = () => {
28772877 if ( newMode === 'focus' && consoleIsEnabled ) {
28782878 toolsPane ?. setActiveTool ( 'console' ) ;
28792879 }
2880- showMode ( newMode , config . view ) ;
2880+ window . deps ?. showMode ?. ( newMode , config . view ) ;
28812881 } ) ;
28822882
28832883 eventsManager . addEventListener ( UI . getCopyButton ( ) , 'click' , ( ) => {
@@ -3455,7 +3455,7 @@ const handleOpen = () => {
34553455
34563456const handleImport = ( ) => {
34573457 const createImportUI = async ( ) => {
3458- modal . show ( loadingMessage ( ) , { size : 'small' } ) ;
3458+ modal . show ( loadingMessage ( ) , { size : 'small' , autoFocus : false } ) ;
34593459 const importModule : typeof import ( './UI/import' ) = await import ( baseUrl + '{{hash:import.js}}' ) ;
34603460 importModule . createImportUI ( {
34613461 baseUrl,
@@ -3639,7 +3639,7 @@ const handleDeploy = () => {
36393639 ) ;
36403640 return ;
36413641 }
3642- modal . show ( loadingMessage ( ) , { size : 'small' } ) ;
3642+ modal . show ( loadingMessage ( ) , { size : 'small' , autoFocus : false } ) ;
36433643
36443644 const getProjectDeployRepo = async ( ) => {
36453645 if ( ! projectId ) return ;
@@ -3690,7 +3690,7 @@ const handleSync = () => {
36903690 ) ;
36913691 return ;
36923692 }
3693- modal . show ( loadingMessage ( ) , { size : 'small' } ) ;
3693+ modal . show ( loadingMessage ( ) , { size : 'small' , autoFocus : false } ) ;
36943694
36953695 const syncUIModule : typeof import ( './UI/sync-ui' ) = await import (
36963696 baseUrl + '{{hash:sync-ui.js}}'
@@ -4374,7 +4374,7 @@ const handleExternalResources = () => {
43744374 dispatchChangeEvent ( ) ;
43754375 } ;
43764376
4377- modal . show ( loadingMessage ( ) , { size : 'small' } ) ;
4377+ modal . show ( loadingMessage ( ) , { size : 'small' , autoFocus : false } ) ;
43784378 const resourcesModule : typeof import ( './UI/resources' ) = await import (
43794379 baseUrl + '{{hash:resources.js}}'
43804380 ) ;
0 commit comments