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) {
|
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
|
||||||
|
Reference in New Issue
Block a user