From 05bb8915531670f0fcb288b9f694bd1ba0f2ca2c Mon Sep 17 00:00:00 2001 From: Apratim Shukla Date: Fri, 13 Oct 2023 07:04:56 -0700 Subject: [PATCH] Alert added --- index.html | 6 ------ script.js | 5 +---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/index.html b/index.html index be7050b..4696313 100644 --- a/index.html +++ b/index.html @@ -73,12 +73,6 @@ - - diff --git a/script.js b/script.js index 901b4f6..9d437b5 100644 --- a/script.js +++ b/script.js @@ -5,10 +5,7 @@ const sdk = new ResilientSDK(); // Add a message listener sdk.addMessageListener((event) => { const message = event.data.data; - var alertDiv = document.getElementById("result"); - alertDiv.className = `alert alert-success`; // Set the alert type - alertDiv.innerHTML = JSON.stringify(message); // Set the message - alertDiv.style.display = 'block'; // Show the alert + alert(JSON.stringify(message)); // Set the message }); var commit = document.querySelector('[data-nexres="commit-page-script"]');