Merge pull request #395 from lbryio/reload-hash-bug
Fix a bug where refreshing strips the claim_id from the uri
This commit is contained in:
commit
152da72fc9
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import lbry from "lbry";
|
|||
|
||||
const currentPath = () => {
|
||||
const hash = document.location.hash;
|
||||
if (hash !== "") return hash.split("#")[1];
|
||||
if (hash !== "") return hash.replace(/^#/, "");
|
||||
else return "/discover";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue