Skip to content

Commit 1499339

Browse files
committed
Simplify ContextStore.setAll() arguments
1 parent 33bc4b1 commit 1499339

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/nscl

src/ui/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
opt("global", o => {
3636
if (o) {
3737
policy.enforced = !o.checked;
38-
contextStore.setAll({key: "enforced", value: !o.checked});
38+
contextStore.setAll({"enforced": !o.checked});
3939
UI.updateSettings({policy, contextStore});
4040
}
4141
let {enforced} = policy;
@@ -49,7 +49,7 @@
4949
opt("auto", o => {
5050
if (o) {
5151
policy.autoAllowTop = o.checked;
52-
contextStore.setAll({key: "autoAllowTop", value: o.checked});
52+
contextStore.setAll({"autoAllowTop": o.checked});
5353
UI.updateSettings({policy, contextStore});
5454
}
5555
return policy.autoAllowTop;

0 commit comments

Comments
 (0)