Skip to content

Commit

Permalink
capricorn86#1092@patch: Fixes MediaQueryListEvent eventInit param.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrotoff committed Sep 24, 2023
1 parent 4f772c4 commit f553c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/event/events/MediaQueryListEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class MediaQueryListEvent extends Event {
* @param type Event type.
* @param [eventInit] Event init.
*/
constructor(type: string, eventInit: IMediaQueryListInit = null) {
constructor(type: string, eventInit: IMediaQueryListInit = {}) {
super(type, eventInit);

this.matches = eventInit.matches ?? false;
Expand Down

0 comments on commit f553c4e

Please sign in to comment.