just do that
This commit is contained in:
@@ -21,7 +21,7 @@ export function setPill(kind, text) {
|
|||||||
|
|
||||||
export function setLink(name, clear) {
|
export function setLink(name, clear) {
|
||||||
const url = new URL(location.href);
|
const url = new URL(location.href);
|
||||||
if (clear) url.searchParams.forEach((_, k) => url.searchParams.delete(k)); // FUCK
|
if (clear) url.search = ""; // yo
|
||||||
/* const hasExtraFilters = filter_array.some(
|
/* const hasExtraFilters = filter_array.some(
|
||||||
(k) => url.searchParams.getAll(k).length
|
(k) => url.searchParams.getAll(k).length
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user