From abba07450cb5ef5fccdc8550e551c94aa2c8acab Mon Sep 17 00:00:00 2001 From: Kenneth Hendricks <50819541+kenhendricks00@users.noreply.github.com> Date: Thu, 17 Oct 2024 01:48:54 -0400 Subject: [PATCH] Update index.js --- pub/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pub/index.js b/pub/index.js index be8879f..61f84d0 100644 --- a/pub/index.js +++ b/pub/index.js @@ -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