Lib: Make button pathname matching more relaxed

This commit is contained in:
2024-12-27 21:51:03 +01:00
parent 545488da8a
commit ea54ea58f1
+2 -2
View File
@@ -6,8 +6,8 @@
const is_at_path = (path: string): boolean => {
const pathname: string = $page.url.pathname;
// console.log(pathname);
return pathname === path;
// return pathname === path;
return pathname.endsWith(path);
};
interface ButtonProps extends HTMLButtonAttributes {