@@ -131,25 +131,23 @@ options.initAutoConnectConnectionTimeout = function () {
131131
132132options . initShowAllSerialDevices = function ( ) {
133133 const showAllSerialDevicesElement = $ ( 'div.showAllSerialDevices input' ) ;
134- ConfigStorage . get ( 'showAllSerialDevices' , result => {
135- showAllSerialDevicesElement
136- . prop ( 'checked' , ! ! result . showAllSerialDevices )
137- . on ( 'change' , ( ) => ConfigStorage . set ( { showAllSerialDevices : showAllSerialDevicesElement . is ( ':checked' ) } ) )
138- . trigger ( 'change' ) ;
139- } ) ;
134+ const result = ConfigStorage . get ( 'showAllSerialDevices' ) ;
135+ showAllSerialDevicesElement
136+ . prop ( 'checked' , ! ! result . showAllSerialDevices )
137+ . on ( 'change' , ( ) => ConfigStorage . set ( { showAllSerialDevices : showAllSerialDevicesElement . is ( ':checked' ) } ) )
138+ . trigger ( 'change' ) ;
140139} ;
141140
142141options . initShowVirtualMode = function ( ) {
143142 const showVirtualModeElement = $ ( 'div.showVirtualMode input' ) ;
144- ConfigStorage . get ( 'showVirtualMode' , result => {
145- showVirtualModeElement
146- . prop ( 'checked' , ! ! result . showVirtualMode )
147- . on ( 'change' , ( ) => {
148- ConfigStorage . set ( { showVirtualMode : showVirtualModeElement . is ( ':checked' ) } ) ;
149- PortHandler . initialPorts = false ;
150- } )
151- . trigger ( 'change' ) ;
152- } ) ;
143+ const result = ConfigStorage . get ( 'showVirtualMode' ) ;
144+ showVirtualModeElement
145+ . prop ( 'checked' , ! ! result . showVirtualMode )
146+ . on ( 'change' , ( ) => {
147+ ConfigStorage . set ( { showVirtualMode : showVirtualModeElement . is ( ':checked' ) } ) ;
148+ PortHandler . initialPorts = false ;
149+ } )
150+ . trigger ( 'change' ) ;
153151} ;
154152
155153options . initCordovaForceComputerUI = function ( ) {
0 commit comments