Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
apratimshukla6 committed Oct 13, 2023
1 parent 8a2c3c7 commit 47aeef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const sdk = new ResilientSDK();
sdk.addMessageListener((event) => {
const message = event.data.data;
var alertDiv = document.getElementById("result");
alertDiv.className = `alert alert-${type}`; // Set the alert type
alertDiv.className = `alert alert-success`; // Set the alert type
alertDiv.innerHTML = JSON.stringify(message); // Set the message
alertDiv.style.display = 'block'; // Show the alert
});
Expand Down

0 comments on commit 47aeef5

Please sign in to comment.