spot changes
This commit is contained in:
parent
0029558c1f
commit
67eb4a6bca
1 changed files with 2 additions and 3 deletions
|
|
@ -65,15 +65,14 @@ export default defineUnlistedScript(() => {
|
||||||
notification.innerHTML = notificationContent;
|
notification.innerHTML = notificationContent;
|
||||||
document.body.appendChild(notification);
|
document.body.appendChild(notification);
|
||||||
|
|
||||||
// Force reflow to ensure styles are applied
|
notification.offsetHeight;
|
||||||
notification.offsetHeight; // Trigger reflow
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
notification.style.opacity = "0";
|
notification.style.opacity = "0";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(notification);
|
document.body.removeChild(notification);
|
||||||
}, 300);
|
}, 300);
|
||||||
}, 4000);
|
}, 4500);
|
||||||
}
|
}
|
||||||
|
|
||||||
function initNotificationListener() {
|
function initNotificationListener() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue