fix (tsc): tsc error

This commit is contained in:
MickaelK 2025-08-01 14:23:15 +10:00
parent 3c20f044f6
commit 2ebf3df540

View file

@ -30,7 +30,7 @@ class NotificationComponent extends HTMLElement {
if (this.buffer.length !== 1) { if (this.buffer.length !== 1) {
const $close = this.querySelector(".close"); const $close = this.querySelector(".close");
if (!($close instanceof HTMLElement) || !$close.onclick) return; if (!($close instanceof HTMLElement) || !$close.onclick) return;
$close.onclick(new MouseEvent("mousedown")); $close.onclick(new PointerEvent("mousedown"));
return; return;
} }
await this.run(); await this.run();