From 779abfb75b7fe1be52f27ad4957dc0c7e66b1dff Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 30 Aug 2019 14:12:52 -0400 Subject: [PATCH] no popout on cold start --- src/ui/component/app/view.jsx | 7 ++++--- yarn.lock | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ui/component/app/view.jsx b/src/ui/component/app/view.jsx index 129e84589..e8ccf19bf 100644 --- a/src/ui/component/app/view.jsx +++ b/src/ui/component/app/view.jsx @@ -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(() => { diff --git a/yarn.lock b/yarn.lock index 7e25853b7..baec73e34 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"