only show the splash screen on initial load
This commit is contained in:
parent
18108f12ab
commit
24d339b583
2 changed files with 21 additions and 17 deletions
|
@ -28,6 +28,7 @@ var SplashScreen = React.createClass({
|
|||
});
|
||||
|
||||
lbry.resolveName('one', () => {
|
||||
window.sessionStorage.setItem('loaded', 'y')
|
||||
this.props.onLoadDone();
|
||||
});
|
||||
return;
|
||||
|
|
|
@ -13,7 +13,9 @@ var init = function() {
|
|||
}
|
||||
|
||||
var canvas = document.getElementById('canvas');
|
||||
|
||||
if (window.sessionStorage.getItem('loaded') == 'y') {
|
||||
ReactDOM.render(<App/>, canvas)
|
||||
} else {
|
||||
ReactDOM.render(
|
||||
<SplashScreen message="Connecting" onLoadDone={function() {
|
||||
// Redirect to the claim code page if needed. Find somewhere better for this logic
|
||||
|
@ -31,6 +33,7 @@ var init = function() {
|
|||
}}/>,
|
||||
canvas
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
init();
|
||||
|
|
Loading…
Reference in a new issue