diff --git a/ui/index.jsx b/ui/index.jsx index 2fecc6849..d73c41614 100644 --- a/ui/index.jsx +++ b/ui/index.jsx @@ -275,7 +275,9 @@ function AppWrapper() { useEffect(() => { if (readyToLaunch && persistDone) { + // @if TARGET='app' sessionStorage.setItem('startup', true); + // @endif app.store.dispatch(doUpdateIsNightAsync()); app.store.dispatch(doDaemonReady()); app.store.dispatch(doBlackListedOutpointsSubscribe()); diff --git a/ui/redux/actions/app.js b/ui/redux/actions/app.js index a5b8741a5..cb5036a6b 100644 --- a/ui/redux/actions/app.js +++ b/ui/redux/actions/app.js @@ -329,7 +329,7 @@ export function doDaemonReady() { const state = getState(); // TODO: call doFetchDaemonSettings, then get usage data, and call doAuthenticate once they are loaded into the store - const shareUsageData = window.localStorage.getItem(SHARE_INTERNAL) === 'true' || IS_WEB; + const shareUsageData = IS_WEB || window.localStorage.getItem(SHARE_INTERNAL) === 'true'; dispatch( doAuthenticate(appVersion, undefined, undefined, shareUsageData, status => {