We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 737c02f commit 68b2574Copy full SHA for 68b2574
1 file changed
src/runner.mjs
@@ -14,7 +14,7 @@ function respawn(first = false) {
14
15
if (first && data.type === 'initialize') {
16
const { FEATURES } = data.value;
17
- FEATURES.forEach(({ name }) => {
+ FEATURES.forEach(({ name, flag }) => {
18
// <li>
19
// <label>
20
// <input type="checkbox">
@@ -28,17 +28,17 @@ function respawn(first = false) {
28
getState('features')
29
.then((f) => {
30
if (input.checked) {
31
- f.add(name);
+ f.add(flag);
32
} else {
33
- f.delete(name);
+ f.delete(flag);
34
}
35
updateState();
36
respawn();
37
});
38
39
40
.then((requestedFeatures) => {
41
- input.checked = requestedFeatures.has(name);
+ input.checked = requestedFeatures.has(flag);
42
43
44
const label = document.createElement('label');
0 commit comments