From b8ff702296998d4446b7e683cf3c72ca181020ae Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Mon, 11 Jul 2022 17:29:46 +0530 Subject: [PATCH] remove slash --- apps/remix-ide/src/404.html | 4 ++-- libs/remix-lib/src/query-params.ts | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide/src/404.html b/apps/remix-ide/src/404.html index 28214dc776..28268a1ab1 100644 --- a/apps/remix-ide/src/404.html +++ b/apps/remix-ide/src/404.html @@ -7,9 +7,9 @@ \ No newline at end of file diff --git a/libs/remix-lib/src/query-params.ts b/libs/remix-lib/src/query-params.ts index be3d2a876f..7e89b226ff 100644 --- a/libs/remix-lib/src/query-params.ts +++ b/libs/remix-lib/src/query-params.ts @@ -17,9 +17,7 @@ export class QueryParams { } get () { - let qs - if (window.location.hash.startsWith('#/')) qs = window.location.hash.substr(2) - else qs = window.location.hash.substr(1) + const qs = window.location.hash.substr(1) if (window.location.search.length > 0) { // use legacy query params instead of hash