Set default complete property value

jh-changes
Shin'ya Ueoka 6 years ago
parent 5fa8877862
commit 5ecada5b23
  1. 3
      src/background/usecases/completions.js

@ -39,7 +39,8 @@ export default class CompletionsInteractor {
let settings = await this.settingRepository.get(); let settings = await this.settingRepository.get();
let groups = []; 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') { if (c === 's') {
// eslint-disable-next-line no-await-in-loop // eslint-disable-next-line no-await-in-loop
let engines = await this.querySearchEngineItems(name, keywords); let engines = await this.querySearchEngineItems(name, keywords);