-Util.loadFiles(screenPath).then(function (screens) {
- config.screens = screens;
- return Util.loadFiles(rendererPath);
-}).then(function (renderers) {
- config.renderers = renderers;
-}).then(function () {
- let tomatoSauce = new TomatoSauce(config);
-
- tomatoSauce.on('listening', function (event) {
- const address = event.data.server.address();
- console.log(`Tomato Sauce listening on: ${address.address}:${address.port}`);
- });
-
- tomatoSauce.on('error', function (error) {
- console.error(error.stack || error.message || error);
- process.exit(1);
- });
-
- tomatoSauce.run();
-});
+Util.loadFiles(screenPath).then((screens) => {
+
+ config.screens = screens;
+ return Util.loadFiles(rendererPath);
+})
+ .then((renderers) => {
+
+ config.renderers = renderers;
+ })
+ .then(() => {
+
+ const tomatoSauce = new TomatoSauce(config);
+
+ tomatoSauce.on('listening', (event) => {
+
+ const address = event.data.server.address();
+ console.log(`Tomato Sauce listening on: ${address.address}:${address.port}`);
+ });
+
+ tomatoSauce.on('error', (error) => {
+
+ console.error(error.stack || error.message || error);
+ process.exit(1);
+ });
+
+ tomatoSauce.run();
+ });