aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-13 22:14:19 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-07-13 22:22:21 +0900
commit803e6ea7af60107182356b5fda8e3c2ddfacaefa (patch)
treedd4461af8343a7d5c9fc13cc51cd0fd5edd0285e /src
parentccc6a31ddeab78660305d9088e8260156b251779 (diff)
Replace flat with reduce-concat
Diffstat (limited to 'src')
-rw-r--r--src/background/shared/completions/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/background/shared/completions/index.js b/src/background/shared/completions/index.js
index d0d00ef..9ca13f7 100644
--- a/src/background/shared/completions/index.js
+++ b/src/background/shared/completions/index.js
@@ -112,7 +112,8 @@ const getSetCompletions = (command, keywords) => {
url: 'Set ' + properties.docs[key],
}
];
- }).flat();
+ });
+ items = items.reduce((acc, val) => acc.concat(val), []);
if (items.length === 0) {
return Promise.resolve([]);
}