File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function respawn(first = false) {
1414
1515 if ( first && data . type === 'initialize' ) {
1616 const { FEATURES } = data . value ;
17- FEATURES . forEach ( ( { name } ) => {
17+ FEATURES . forEach ( ( { name, flag } ) => {
1818 // <li>
1919 // <label>
2020 // <input type="checkbox">
@@ -28,17 +28,17 @@ function respawn(first = false) {
2828 getState ( 'features' )
2929 . then ( ( f ) => {
3030 if ( input . checked ) {
31- f . add ( name ) ;
31+ f . add ( flag ) ;
3232 } else {
33- f . delete ( name ) ;
33+ f . delete ( flag ) ;
3434 }
3535 updateState ( ) ;
3636 respawn ( ) ;
3737 } ) ;
3838 } ) ;
3939 getState ( 'features' )
4040 . then ( ( requestedFeatures ) => {
41- input . checked = requestedFeatures . has ( name ) ;
41+ input . checked = requestedFeatures . has ( flag ) ;
4242 } ) ;
4343
4444 const label = document . createElement ( 'label' ) ;
You can’t perform that action at this time.
0 commit comments