handle pwa welcome
This commit is contained in:
parent
3478e276c9
commit
9f71834269
2
dist/main-bundle.js
vendored
2
dist/main-bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -62,10 +62,13 @@ class PokemonApp extends React.Component<IConnectedPokemonAppProps> {
|
|||||||
dispatch(ActionsPokemonExplorer.setActiveLeague(activeLeague));
|
dispatch(ActionsPokemonExplorer.setActiveLeague(activeLeague));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pokemonId === null || pokemonForm === null || typeof cookies === 'undefined' || !cookies.get('welcomed')) {
|
if (pokemonId === null || pokemonForm === null || (
|
||||||
|
(typeof cookies === 'undefined' || !cookies.get('welcomed')) && !window.localStorage.getItem('welcomed')
|
||||||
|
)) {
|
||||||
if (typeof cookies !== 'undefined') {
|
if (typeof cookies !== 'undefined') {
|
||||||
cookies.set('welcomed', 1);
|
cookies.set('welcomed', 1);
|
||||||
}
|
}
|
||||||
|
window.localStorage.setItem('welcomed', '1');
|
||||||
this.handleOpenWelcomeDialog();
|
this.handleOpenWelcomeDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user