check fixed. see #506
This commit is contained in:
parent
bf29673600
commit
b713f4fd48
1 changed files with 2 additions and 2 deletions
|
|
@ -630,7 +630,7 @@ switch (message.command) {
|
|||
let textColor = '#333';
|
||||
let borderColor = '#ccc';
|
||||
|
||||
if (data.spamValue < (data.SpamThreshold || 50)) {
|
||||
if (data.spamValue >= (data.SpamThreshold || 50)) {
|
||||
bgColor = isDark ? '#5a1a1a' : '#ffe6e6';
|
||||
textColor = isDark ? '#ffcccc' : '#cc0000';
|
||||
borderColor = '#cc0000';
|
||||
|
|
@ -643,7 +643,7 @@ switch (message.command) {
|
|||
container.style.cssText = `background-color: ${bgColor}; color: ${textColor}; border-bottom: 1px solid ${borderColor}; padding: 8px 12px; font-family: system-ui, -apple-system, sans-serif; font-size: 13px; display: flex; align-items: center; gap: 15px; width: 100%; box-sizing: border-box;`;
|
||||
|
||||
const scoreText = document.createElement('strong');
|
||||
scoreText.textContent = ((data.spamValue < (data.SpamThreshold || 50)) ? browser.i18n.getMessage("Spam") : browser.i18n.getMessage("Valid")) + " [" + data.spamValue + "/100]";
|
||||
scoreText.textContent = ((data.spamValue >= (data.SpamThreshold || 50)) ? browser.i18n.getMessage("Spam") : browser.i18n.getMessage("Valid")) + " [" + data.spamValue + "/100]";
|
||||
|
||||
const reasonText = document.createElement('span');
|
||||
reasonText.textContent = browser.i18n.getMessage("Explanation") + ": " + data.explanation;
|
||||
|
|
|
|||
Loading…
Reference in a new issue