diff --git a/doc/api_assets/api.js b/doc/api_assets/api.js index 3036c8988ff655..3bd82a880fbd42 100644 --- a/doc/api_assets/api.js +++ b/doc/api_assets/api.js @@ -17,7 +17,9 @@ if (themeToggleButton) { themeToggleButton.addEventListener( 'click', - function() { mq.removeEventListener('change', mqChangeListener); }, + function() { + mq.removeEventListener('change', mqChangeListener); + }, { once: true }, ); }