Update debounce param order

Parameter order was changed in
I2ef1c949d68c5642943a614e2cb3f2f0a4cb140c

Change-Id: Iefc61dd84e53de60a95a69275d5c5619b0db25ff
This commit is contained in:
Ed Sanders 2022-03-13 00:59:03 +00:00
parent 54897659fc
commit f04f62ec05
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ function initCheckboxHack( checkbox, button ) {
* @return {any}
*/
function saveSidebarState( checkbox ) {
return debounce( 1000, function () {
return debounce( function () {
api = api || new mw.Api();
api.saveOption( SIDEBAR_PREFERENCE_NAME, checkbox.checked ? 1 : 0 );
@ -140,7 +140,7 @@ function saveSidebarState( checkbox ) {
event.initUIEvent( 'resize', true, false, window, 0 );
}
window.dispatchEvent( event );
} );
}, 1000 );
}
/**