From cadeb152fce1fcebf91f1ca095344a9b47b43c4a Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Sun, 20 Mar 2016 12:10:09 +0100 Subject: [PATCH] formatting --- resources/figwheel-bridge.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/figwheel-bridge.js b/resources/figwheel-bridge.js index 126dee2..7cf25c5 100644 --- a/resources/figwheel-bridge.js +++ b/resources/figwheel-bridge.js @@ -20,7 +20,7 @@ var serverHost = null; // will be set dynamically var fileBasePath = null; // will be set dynamically var evaluate = eval; // This is needed, direct calls to eval does not work (RN packager???) var externalModules = {}; -var evalListeners = [ // Functions to be called after js file is loaded and evaluated +var evalListeners = [ // Functions to be called after each js file is loaded and evaluated function (url) { if (url.indexOf('jsloader') > -1) { shimJsLoader(); @@ -30,8 +30,7 @@ var evalListeners = [ // Functions to be called after js file is loaded and eval if (url.indexOf('/figwheel/client/socket') > -1) { setCorrectWebSocketImpl(); } - } -]; + }]; var figwheelApp = function (platform, devHost) { return React.createClass({ @@ -176,6 +175,7 @@ function setCorrectWebSocketImpl() { return WebSocket; }; } + function loadApp(platform, devHost, onLoadCb) { serverHost = devHost; fileBasePath = config.basePath + platform;