Skip to content

Commit

Permalink
Revert "chore: use addEventListener instead of addListener (eslint#15923
Browse files Browse the repository at this point in the history
)"

This reverts commit a5ffdfe.
  • Loading branch information
srijan-deepsource committed May 30, 2022
1 parent b574262 commit 41eed93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/assets/js/components-index.js
Expand Up @@ -6,7 +6,7 @@

if (matchMedia) {
const mq = window.matchMedia("(max-width: 1023px)");
mq.addEventListener('change', WidthChange);
mq.addListener(WidthChange);
WidthChange(mq);
}

Expand Down
6 changes: 3 additions & 3 deletions docs/src/assets/js/main.js
Expand Up @@ -6,7 +6,7 @@

if (toc && matchMedia) {
const mq = window.matchMedia("(max-width: 1023px)");
mq.addEventListener('change', WidthChange);
mq.addListener(WidthChange);
WidthChange(mq);
}

Expand Down Expand Up @@ -53,7 +53,7 @@

if (matchMedia) {
const mq = window.matchMedia("(max-width: 1023px)");
mq.addEventListener('change', WidthChange);
mq.addListener(WidthChange);
WidthChange(mq);
}

Expand Down Expand Up @@ -93,7 +93,7 @@

if (matchMedia) {
const mq = window.matchMedia("(max-width: 1023px)");
mq.addEventListener('change', WidthChange);
mq.addListener(WidthChange);
WidthChange(mq);
}

Expand Down

0 comments on commit 41eed93

Please sign in to comment.