no popout on cold start

This commit is contained in:
jessop 2019-08-30 14:12:52 -04:00 committed by Sean Yesmunt
parent 53ce5dcb11
commit 779abfb75b
2 changed files with 6 additions and 5 deletions

View file

@ -23,7 +23,7 @@ type Props = {
theme: string,
accessToken: ?string,
user: ?{ id: string, has_verified_email: boolean, is_reward_approved: boolean },
location: { pathname: string },
location: { pathname: string, hash: string },
fetchRewards: () => void,
fetchRewardedContent: () => void,
fetchTransactions: () => void,
@ -40,11 +40,12 @@ function App(props: Props) {
const previousUserId = usePrevious(userId);
const previousHasVerifiedEmail = usePrevious(hasVerifiedEmail);
const previousRewardApproved = usePrevious(isRewardApproved);
const { pathname } = props.location;
const { pathname, hash } = props.location;
let uri;
try {
uri = buildURI(parseURI(pathname.slice(1).replace(/:/g, '#')));
const newpath = buildURI(parseURI(pathname.slice(1).replace(/:/g, '#')));
uri = newpath + hash;
} catch (e) {}
useEffect(() => {

View file

@ -6901,9 +6901,9 @@ lazy-val@^1.0.3, lazy-val@^1.0.4:
yargs "^13.2.2"
zstd-codec "^0.1.1"
lbry-redux@lbryio/lbry-redux#a1a8d3d3fe952412e5f631d1ea0d4b63555525da:
lbry-redux@lbryio/lbry-redux#73ca9faca22d7f9b47366e62e3a519c7b72af33b:
version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/a1a8d3d3fe952412e5f631d1ea0d4b63555525da"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/73ca9faca22d7f9b47366e62e3a519c7b72af33b"
dependencies:
proxy-polyfill "0.1.6"
reselect "^3.0.0"