parent
2e407c1146
commit
22da6fee69
2 changed files with 3 additions and 1 deletions
|
@ -275,7 +275,9 @@ function AppWrapper() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (readyToLaunch && persistDone) {
|
if (readyToLaunch && persistDone) {
|
||||||
|
// @if TARGET='app'
|
||||||
sessionStorage.setItem('startup', true);
|
sessionStorage.setItem('startup', true);
|
||||||
|
// @endif
|
||||||
app.store.dispatch(doUpdateIsNightAsync());
|
app.store.dispatch(doUpdateIsNightAsync());
|
||||||
app.store.dispatch(doDaemonReady());
|
app.store.dispatch(doDaemonReady());
|
||||||
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
||||||
|
|
|
@ -329,7 +329,7 @@ export function doDaemonReady() {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
|
|
||||||
// TODO: call doFetchDaemonSettings, then get usage data, and call doAuthenticate once they are loaded into the store
|
// 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(
|
dispatch(
|
||||||
doAuthenticate(appVersion, undefined, undefined, shareUsageData, status => {
|
doAuthenticate(appVersion, undefined, undefined, shareUsageData, status => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue