mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
Update index.js
This commit is contained in:
parent
29e3aa291b
commit
abba07450c
1 changed files with 5 additions and 0 deletions
|
|
@ -34,6 +34,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
// Update popup for potentially unsafe site
|
||||
statusIcon.src = '../res/icons/potentially_unsafe.png'; // Update icon to potentially unsafe
|
||||
statusMessage.textContent = `${currentUrl} is potentially unsafe. Be cautious!`; // Update message
|
||||
} else if (response.status === "safe") {
|
||||
console.log("Popup: Site is safe:", currentUrl);
|
||||
// Update popup for safe site
|
||||
statusIcon.src = '../res/icons/safe.png'; // Update icon to safe
|
||||
statusMessage.textContent = `${currentUrl} is safe.`; // Update message
|
||||
} else if (response.status === "no_data") {
|
||||
console.log("Popup: No data for this site:", currentUrl);
|
||||
// Update popup for no data
|
||||
|
|
|
|||
Loading…
Reference in a new issue