From 9e2b43c5317f356585bb12b6903ae4cd72070950 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Thu, 29 Dec 2016 04:41:28 -0500 Subject: [PATCH] Implement debug mode Exposes lbry and lighthouse modules in global scope for easy testing. --- js/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/main.js b/js/main.js index 8ff6853a8..d39fc84a5 100644 --- a/js/main.js +++ b/js/main.js @@ -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(