Remove { passive: true } from removeEventListener

This option doesn't exist when removing an event.

Change-Id: I74cc8c41ad13ae7d2b4932c41d8dc51b764e1b6b
This commit is contained in:
Ed Sanders 2023-12-08 11:00:01 +00:00
parent fda355fe2e
commit dd4e766d4b

View file

@ -132,7 +132,7 @@
function hideToolbarPlaceholder() { function hideToolbarPlaceholder() {
if ( $toolbarPlaceholder ) { if ( $toolbarPlaceholder ) {
window.removeEventListener( 'scroll', onWindowScrollListener, { passive: true } ); window.removeEventListener( 'scroll', onWindowScrollListener );
$toolbarPlaceholder.detach(); $toolbarPlaceholder.detach();
$toolbarPlaceholder.removeClass( 've-init-mw-desktopArticleTarget-toolbarPlaceholder-open' ); $toolbarPlaceholder.removeClass( 've-init-mw-desktopArticleTarget-toolbarPlaceholder-open' );
} }