Skip to content

Commit

Permalink
Alert added
Browse files Browse the repository at this point in the history
  • Loading branch information
apratimshukla6 committed Oct 13, 2023
1 parent 3f876ee commit 05bb891
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@


<button data-nexres="update-multi-page-script" id="24" class="btn btn-success mb-3">Update Multiple</button>

<div id="result" class="alert alert-success alert-dismissible fade show" role="alert" style="display: none;">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</div>
</div>

Expand Down
5 changes: 1 addition & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]');
Expand Down

0 comments on commit 05bb891

Please sign in to comment.