script: use passive event listener option on AddEventListenerOptions (#35877)

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2025-03-10 20:44:16 +11:00 committed by GitHub
parent 1b6b21cb85
commit 7fc5dc5c69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 87 additions and 217 deletions

View file

@ -106,6 +106,7 @@ impl MediaQueryListMethods<crate::DomTypeHolder> for MediaQueryList {
AddEventListenerOptions {
parent: EventListenerOptions { capture: false },
once: false,
passive: None,
},
);
}