404 updated

pull/2598/head^2
Aniket-Engg 3 years ago committed by Aniket
parent 3394121886
commit 4f2170c9fd
  1. 9
      apps/remix-ide/src/404.html

@ -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…
Cancel
Save