corect comment

This commit is contained in:
6543 2019-09-18 21:12:16 +02:00
parent 9546772868
commit 4720a6d57c
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 2 additions and 3 deletions

View File

@ -22,8 +22,8 @@ window.sortt=function(normsort,revsort,isdefault){

// parse URL
/* script check if url has already a sort=
NO: if sort=“” indikates default (with * prefix) set url_sort=
YES: set url_sort variable
NO: if normsort is default set url_sort=
YES: set url_sort variable
*/
let url = new URL(window.location);
let url_sort = url.searchParams.get("sort");
@ -34,7 +34,6 @@ window.sortt=function(normsort,revsort,isdefault){
NO: generate URL with sort param
YES: check if reverse attribute exist -> YES: generate URL with reverse sort param
*/

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