Skip to content

Commit

Permalink
Fix innerHTML test
Browse files Browse the repository at this point in the history
  • Loading branch information
conema committed Oct 12, 2020
1 parent ec88e6a commit 1297a01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/scripts/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ function saveOptions(e) {

if (messageListInput.validationMessage || folderTreeInput.validationMessage){
document.querySelector("#error").style.display = "block";
document.querySelector("#error").innerHTML = messageListInput.validationMessage + "<br>" + folderTreeInput.validationMessage;
document.querySelector("#error").innerText = messageListInput.validationMessage + "<br>" + folderTreeInput.validationMessage;
document.querySelector("#success").style.display = "none";
} else {
document.querySelector("#error").style.display = "none";
document.querySelector("#success").style.display = "block";
document.querySelector("#success").innerHTML = "Settings saved. You must restart Thunderbird to see the changes.";
document.querySelector("#success").innerText = "Settings saved. You must restart Thunderbird to see the changes.";
}
}

Expand All @@ -36,7 +36,7 @@ function resetOptions(e) {

document.querySelector("#error").style.display = "none";
document.querySelector("#success").style.display = "block";
document.querySelector("#success").innerHTML = "Settings are restored. You must restart Thunderbird to see the changes.";
document.querySelector("#success").innerText = "Settings are restored. You must restart Thunderbird to see the changes.";
}

function restoreOptions() {
Expand Down

0 comments on commit 1297a01

Please sign in to comment.