mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
14 lines
276 B
TypeScript
14 lines
276 B
TypeScript
declare global {
|
|
interface Window {
|
|
ethereum: any;
|
|
localStorage: Storage;
|
|
}
|
|
}
|
|
|
|
function getPath(location: Location): string {
|
|
const url = location.href.replace(window.origin, "");
|
|
return process.env.hashRouting ? url.substring(2) : url;
|
|
}
|
|
|
|
export { getPath };
|