Skip to content

Commit

Permalink
Update webInterface_1.6.0.slim.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sblantipodi authored Jan 6, 2025
1 parent de3dc87 commit 59d959d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/webInterface_1.6.0.slim.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,14 @@ function showToast(message, contextClass) {
if (!document.getElementById('toastContainer')) {
addToastContainer();
}

var toastHTML = `
<div class="toast ${contextClass}" role="alert" aria-live="assertive" aria-atomic="true" data-delay="5000" style="max-width: 300px;>
<div class="toast ${contextClass}" role="alert" aria-live="assertive" aria-atomic="true" data-delay="5000">
<div class="toast-body">
${message}
</div>
</div>`;

var toastContainer = document.getElementById('toastContainer').children[0];
toastContainer.insertAdjacentHTML('beforeend', toastHTML);

var toastElement = toastContainer.lastElementChild;
$(toastElement).toast('show');
}
Expand Down

0 comments on commit 59d959d

Please sign in to comment.