Skip to content

Commit

Permalink
バグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
retrorocket committed Sep 23, 2019
1 parent 6bbcf71 commit 5c1c462
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/script.js
Expand Up @@ -52,14 +52,12 @@ const observer = new MutationObserver((mutations) => {
alias.forEach(a => {
let start = fetchStr(text, pos);
if (start && a[2].startsWith(start)) {
liText += `<li class="inserted-extension" data-value="${a[0]}" role="option"><span>${a[0]}</span>&nbsp;<small>${a[1]}</small></li>`;
let liText = `<li class="inserted-extension" data-value="${a[0]}" role="option"><span>${a[0]}</span>&nbsp;<small>${a[1]}</small></li>`;
ul.insertBefore(createElementFromHTML(liText), ul.firstChild);
}
});
}
});
if (liText) {
ul.insertBefore(createElementFromHTML(liText), ul.firstChild);
}
}
} else {
ulShowing = false; // suggesterが表示された後、候補がなくなったので表示されなくなった
Expand Down

0 comments on commit 5c1c462

Please sign in to comment.