Skip to content

Commit 68b2574

Browse files
committed
update flags
1 parent 737c02f commit 68b2574

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/runner.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)