url.searchParams delete(), append() -> url.searchParams set()

This commit is contained in:
6543 2019-09-18 10:33:21 +02:00
parent d6beaa8664
commit 295f44fc9c
Signed by: 6543
GPG Key ID: A1CA74D27FD13271

View File

@ -50,11 +50,9 @@ window.sortt=function(normsort,revsort,isdefault){
*/ */


if (url_sort != normsort) { if (url_sort != normsort) {
url.searchParams.delete("sort"); url.searchParams.set("sort",normsort);
url.searchParams.append("sort",normsort);
} else if (revsort != "") { } else if (revsort != "") {
url.searchParams.delete("sort"); url.searchParams.set("sort",revsort);
url.searchParams.append("sort",revsort);
} }


//open url //open url