url.searchParams delete(), append() -> url.searchParams set()
This commit is contained in:
parent
d6beaa8664
commit
295f44fc9c
6
sortt.js
6
sortt.js
@ -50,11 +50,9 @@ window.sortt=function(normsort,revsort,isdefault){
|
||||
*/
|
||||
|
||||
if (url_sort != normsort) {
|
||||
url.searchParams.delete("sort");
|
||||
url.searchParams.append("sort",normsort);
|
||||
url.searchParams.set("sort",normsort);
|
||||
} else if (revsort != "") {
|
||||
url.searchParams.delete("sort");
|
||||
url.searchParams.append("sort",revsort);
|
||||
url.searchParams.set("sort",revsort);
|
||||
}
|
||||
|
||||
//open url
|
||||
|
Reference in New Issue
Block a user