fix(ags): fix no notif placement
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
500f3b921a
commit
df73b65989
1 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,15 @@ const NotificationList = () => Box({
|
|||
visible: HasNotifs.bind(),
|
||||
|
||||
setup: (self) => {
|
||||
const initNotifId = 1337;
|
||||
const delay = 200;
|
||||
|
||||
// Fix the no notif placement with a fake notif
|
||||
Notifications.Notify('', initNotifId, '', '', '', [''], {}, 0);
|
||||
setTimeout(() => {
|
||||
Notifications.getNotification(initNotifId)?.close();
|
||||
}, delay);
|
||||
|
||||
self
|
||||
.hook(Notifications, (box, id) => {
|
||||
// Handle cached notifs
|
||||
|
|
Loading…
Reference in a new issue