Implement debug mode

Exposes lbry and lighthouse modules in global scope for easy testing.
This commit is contained in:
Alex Liebowitz 2016-12-29 04:41:28 -05:00
parent f947164164
commit 9e2b43c531

View file

@ -1,11 +1,17 @@
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() {
if (lbry.getClientSetting('debug')) {
window.lbry = lbry;
window.lighthouse = lighthouse;
}
var canvas = document.getElementById('canvas');
ReactDOM.render(