Implement debug mode
Exposes lbry and lighthouse modules in global scope for easy testing.
This commit is contained in:
parent
f947164164
commit
9e2b43c531
1 changed files with 6 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue