|
|
@ -7,9 +7,9 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
let route = window.location.pathname |
|
|
|
let route = window.location.pathname |
|
|
|
if (route.startsWith('/address/0x') && route.length === 51) { |
|
|
|
if (route.startsWith('/address/0x') && route.length === 51) { |
|
|
|
window.location.href = '/#/address=' + route.replace('/address/', '') |
|
|
|
window.location.href = '/#address=' + route.replace('/address/', '') |
|
|
|
} else if (route.endsWith('.sol')) { |
|
|
|
} else if (route.endsWith('.sol')) { |
|
|
|
window.location.href = '/#/url=https://github.com' + route |
|
|
|
window.location.href = '/#url=https://github.com' + route |
|
|
|
} else window.location.href = '/' |
|
|
|
} else window.location.href = '/' |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
</html> |
|
|
|
</html> |