import React from 'react'; import ReactDOM from 'react-dom'; import lbry from './lbry.js'; import lighthouse from './lighthouse.js'; import App from './app.js'; import SplashScreen from './component/splash.js'; var init = function() { window.lbry = lbry; if (lbry.getClientSetting('debug')) { window.lighthouse = lighthouse; } var canvas = document.getElementById('canvas'); ReactDOM.render( { if (balance <= 0) { window.location.href = '?claim'; } else { ReactDOM.render(, canvas); } }); } else { if (localStorage.getItem('platform') === null) { lbry.getVersionInfo(({os_system}) => { localStorage.setItem('platform', os_system); ReactDOM.render(, canvas); }); } else { ReactDOM.render(, canvas); } } }}/>, canvas ); }; init();