history.replaceState: Drop unused argument

Per https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState

Change-Id: I6687967c8c8f29393f7f10a3234f42754d192953
This commit is contained in:
Ed Sanders
2023-09-20 18:53:56 +01:00
committed by jenkins-bot
parent bde4b44108
commit e040f65ca6

View File

@@ -74,7 +74,7 @@
function removeSetLangFromHistory() {
if ( 'setlang' in mw.Uri().query ) {
history.replaceState( null, 'no-setlang-url', currentUrlWithoutSetLang() );
history.replaceState( null, '', currentUrlWithoutSetLang() );
}
}