Make embeds work without sesion or local storage

Closes #4017
This commit is contained in:
Jeffrey Fisher 2020-05-17 15:13:28 -07:00 committed by Sean Yesmunt
parent 2e407c1146
commit 22da6fee69
2 changed files with 3 additions and 1 deletions

View file

@ -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());

View file

@ -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 => {