remove one hash

pull/2598/head^2
Aniket-Engg 3 years ago committed by Aniket
parent 2c6ce58d02
commit 10be0cf74a
  1. 4
      apps/remix-ide/src/404.html
  2. 2
      libs/remix-lib/src/query-params.ts

@ -7,9 +7,9 @@
<script>
let route = window.location.pathname
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')) {
window.location.href = '/#/#url=https://github.com' + route
window.location.href = '/#/url=https://github.com' + route
} else window.location.href = '/'
</script>
</html>

@ -18,7 +18,7 @@ export class QueryParams {
get () {
let qs
if (window.location.hash.startsWith('#/#')) qs = window.location.hash.substr(3)
if (window.location.hash.startsWith('#/')) qs = window.location.hash.substr(2)
else qs = window.location.hash.substr(1)
if (window.location.search.length > 0) {

Loading…
Cancel
Save