aboutsummaryrefslogtreecommitdiff
path: root/src/background/usecases
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-10-18 21:41:47 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-10-18 21:41:47 +0900
commit5ecada5b2313b01e24639ebf59fc3b9346f7b65c (patch)
tree7076ffd99d2dcf334b6a3c939307652a59c61f91 /src/background/usecases
parent5fa8877862920c72a3183d36f2f313aa9bd14158 (diff)
Set default complete property value
Diffstat (limited to 'src/background/usecases')
-rw-r--r--src/background/usecases/completions.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/background/usecases/completions.js b/src/background/usecases/completions.js
index 2dc71cc..21dc668 100644
--- a/src/background/usecases/completions.js
+++ b/src/background/usecases/completions.js
@@ -39,7 +39,8 @@ export default class CompletionsInteractor {
let settings = await this.settingRepository.get();
let groups = [];
- for (let c of settings.properties.complete) {
+ let complete = settings.properties.complete || properties.defaults.complete;
+ for (let c of complete) {
if (c === 's') {
// eslint-disable-next-line no-await-in-loop
let engines = await this.querySearchEngineItems(name, keywords);