File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ const ConfigStorage = {
2222 } catch ( e ) {
2323 // It's fine if we fail that parse
2424 }
25- callback ?. ( result ) ;
26- } else {
27- callback ?. ( result ) ;
2825 }
2926 }
3027
Original file line number Diff line number Diff line change @@ -31,16 +31,15 @@ options.cleanup = function (callback) {
3131} ;
3232
3333options . initShowWarnings = function ( ) {
34- ConfigStorage . get ( 'showPresetsWarningBackup' , function ( result ) {
35- if ( result . showPresetsWarningBackup ) {
36- $ ( 'div.presetsWarningBackup input' ) . prop ( 'checked' , true ) ;
37- }
34+ const result = ConfigStorage . get ( 'showPresetsWarningBackup' ) ;
35+ if ( result . showPresetsWarningBackup ) {
36+ $ ( 'div.presetsWarningBackup input' ) . prop ( 'checked' , true ) ;
37+ }
3838
39- $ ( 'div.presetsWarningBackup input' ) . change ( function ( ) {
40- const checked = $ ( this ) . is ( ':checked' ) ;
41- ConfigStorage . set ( { 'showPresetsWarningBackup' : checked } ) ;
42- } ) . change ( ) ;
43- } ) ;
39+ $ ( 'div.presetsWarningBackup input' ) . change ( function ( ) {
40+ const checked = $ ( this ) . is ( ':checked' ) ;
41+ ConfigStorage . set ( { 'showPresetsWarningBackup' : checked } ) ;
42+ } ) . change ( ) ;
4443} ;
4544
4645options . initPermanentExpertMode = function ( ) {
You can’t perform that action at this time.
0 commit comments