Fix a bug where refreshing strips the claim_id from the uri

This commit is contained in:
6ea86b96 2017-07-27 11:45:34 +07:00
parent 658e88a467
commit 603217f554
No known key found for this signature in database
GPG key ID: B282D183E4931E8F

View file

@ -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";
};