diff options
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r-- | ext/fg/js/client.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js index 1bd68aea..628d5b30 100644 --- a/ext/fg/js/client.js +++ b/ext/fg/js/client.js @@ -158,9 +158,7 @@ class Client { } api_addNote({index, mode}) { - const state = {}; - state[mode] = false; - + const state = {[mode]: false}; bgAddDefinition(this.definitions[index], mode).then((success) => { if (success) { this.popup.sendMessage('setActionState', {index, state, sequence: this.sequence}); |