From e040f65ca6dda34b4c6a9af79e1880da82f4dad7 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 20 Sep 2023 18:53:56 +0100 Subject: [PATCH] history.replaceState: Drop unused argument Per https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState Change-Id: I6687967c8c8f29393f7f10a3234f42754d192953 --- resources/js/ext.uls.setlang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/ext.uls.setlang.js b/resources/js/ext.uls.setlang.js index 79cea1af..e85ceca1 100644 --- a/resources/js/ext.uls.setlang.js +++ b/resources/js/ext.uls.setlang.js @@ -74,7 +74,7 @@ function removeSetLangFromHistory() { if ( 'setlang' in mw.Uri().query ) { - history.replaceState( null, 'no-setlang-url', currentUrlWithoutSetLang() ); + history.replaceState( null, '', currentUrlWithoutSetLang() ); } }