parent
3394121886
commit
4f2170c9fd
@ -1,10 +1,15 @@ |
|||||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||||
<html> |
<html> |
||||||
<head> |
<head> |
||||||
<title>Test Remix</title> |
<title></title> |
||||||
</head> |
</head> |
||||||
<body></body> |
<body></body> |
||||||
<script> |
<script> |
||||||
window.location.href = '/address/#' + window.location.pathname.replace('/address', '') |
let route = window.location.pathname |
||||||
|
if (route.startsWith('/address/0x') && route.length === 51) { |
||||||
|
window.location.href = '/#/#address=' + route.replace('/address/', '') |
||||||
|
} else if (route.endsWith('.sol')) { |
||||||
|
window.location.href = '/#/#url=https://github.com' + route |
||||||
|
} else window.location.href = '/' |
||||||
</script> |
</script> |
||||||
</html> |
</html> |
Loading…
Reference in new issue