Fix a bug where refreshing strips the claim_id from the uri
This commit is contained in:
parent
658e88a467
commit
603217f554
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…
Reference in a new issue