A
$pathname = location.pathname;
$pathparams = new URL(window.location).searchParams;
Size: a a a
A
PM
A
A
PM
PM
PM
export const pathname = writable();
export const pathparams = writable();
export function popstate() {
pathname.set(location.pathname);
pathparams.set(new URL(window.location).searchParams);
}
PM
PM
A
import { popstate } from './pathname';
у меня стор )PM
import { popstate } from './pathname';
у меня стор )A
A
A
A
A
PM
A
A
VM