@@ -130,25 +130,23 @@ options.initAutoConnectConnectionTimeout = function () {
130130
131131options . initShowAllSerialDevices = function ( ) {
132132 const showAllSerialDevicesElement = $ ( 'div.showAllSerialDevices input' ) ;
133- ConfigStorage . get ( 'showAllSerialDevices' , result => {
134- showAllSerialDevicesElement
135- . prop ( 'checked' , ! ! result . showAllSerialDevices )
136- . on ( 'change' , ( ) => ConfigStorage . set ( { showAllSerialDevices : showAllSerialDevicesElement . is ( ':checked' ) } ) )
137- . trigger ( 'change' ) ;
138- } ) ;
133+ const result = ConfigStorage . get ( 'showAllSerialDevices' ) ;
134+ showAllSerialDevicesElement
135+ . prop ( 'checked' , ! ! result . showAllSerialDevices )
136+ . on ( 'change' , ( ) => ConfigStorage . set ( { showAllSerialDevices : showAllSerialDevicesElement . is ( ':checked' ) } ) )
137+ . trigger ( 'change' ) ;
139138} ;
140139
141140options . initShowVirtualMode = function ( ) {
142141 const showVirtualModeElement = $ ( 'div.showVirtualMode input' ) ;
143- ConfigStorage . get ( 'showVirtualMode' , result => {
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' ) ;
151- } ) ;
142+ const result = ConfigStorage . get ( 'showVirtualMode' ) ;
143+ showVirtualModeElement
144+ . prop ( 'checked' , ! ! result . showVirtualMode )
145+ . on ( 'change' , ( ) => {
146+ ConfigStorage . set ( { showVirtualMode : showVirtualModeElement . is ( ':checked' ) } ) ;
147+ PortHandler . initialPorts = false ;
148+ } )
149+ . trigger ( 'change' ) ;
152150} ;
153151
154152options . initCordovaForceComputerUI = function ( ) {
0 commit comments