Files
radicle-explorer/cypress/support/e2e.ts
T
Sebastian Martinez f38893407a Add hash routing
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 15:24:12 +01:00

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 };