Skip to content

Commit

Permalink
fix: Corriger le changement de serveur quand il y a une erreur. (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Oct 5, 2022
1 parent a8a3ae7 commit 05e9ed5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/popup/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,8 @@ document.querySelector("#send").addEventListener("click", send);
document.querySelector("#insert").addEventListener("click", insert);
document.querySelector("#add").addEventListener("click", add);
document.querySelector("#paste input").addEventListener("change", paste);
for (const input of document.querySelectorAll("#server select")) {
for (const input of document.querySelectorAll("#server select," +
" #splash select")) {
input.addEventListener("change", change);
}

Expand Down Expand Up @@ -1257,7 +1258,8 @@ interval = setInterval(passing, 1000);

const config = await browser.storage.local.get();
if ("multi" === config["server-mode"]) {
for (const input of document.querySelectorAll("select")) {
for (const input of document.querySelectorAll("#server select," +
" #splash select")) {
for (const [index, server] of config["server-list"].entries()) {
const name = (/^\s*$/u).test(server.name)
? browser.i18n.getMessage("menus_noName",
Expand Down

0 comments on commit 05e9ed5

Please sign in to comment.