Fix wish add modal not disappearing

This commit is contained in:
grandeljay 2022-06-21 07:50:04 +02:00
parent 481cbef81a
commit 71f7d92295

View file

@ -507,13 +507,11 @@ $(function () {
}, },
onHide : function() { onHide : function() {
/** Ugly URL */ /** Ugly URL */
var paramString = location.search.split('?')[1]; if (urlParams.has('wish_add')) {
var queryString = new URLSearchParams(paramString); delete($_GET.wish_add);
urlParams.delete('wish_add');
if (queryString.has('wish_add')) { window.history.pushState(null, document.title, '?' + urlParams.toString());
queryString.delete('wish_add');
window.history.pushState(null, document.title, '?' + queryString.toString());
} }
/** Pretty URL */ /** Pretty URL */