Quick cleanup in main.js

Friends don't let friends mix tabs and spaces
This commit is contained in:
Alex Liebowitz 2017-03-30 15:05:31 -04:00 committed by Jeremy Kauffman
parent 892607174a
commit b074242783

View file

@ -25,22 +25,23 @@ var init = function() {
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
if (!localStorage.getItem('claimCodeDone') && window.location.search == '' || window.location.search == '?' || window.location.search == 'discover') {
(
<SplashScreen message="Connecting" onLoadDone={function() {
// Redirect to the claim code page if needed. Find somewhere better for this logic
if (!localStorage.getItem('claimCodeDone') && ['', '?', 'discover'].contains(window.location.search)) {
lbry.getBalance((balance) => {
if (balance <= 0) {
window.location.href = '?claim';
window.location.href = '?claim';
} else {
ReactDOM.render(<App/>, canvas);
ReactDOM.render(<App/>, canvas);
}
});
} else {
} else {
ReactDOM.render(<App/>, canvas);
}
}}/>,
canvas
);
}
}}/>
),
canvas);
}
};