From 59adf460fc47ba1e9cf35d1066c09246e20a76c6 Mon Sep 17 00:00:00 2001 From: Kyle Hornberg Date: Wed, 18 Nov 2015 06:52:17 -0600 Subject: [PATCH] Fix #1 --- main.js | 2 ++ src/app.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/main.js b/main.js index 1061111..10fcb92 100755 --- a/main.js +++ b/main.js @@ -33,6 +33,7 @@ function setIcon() { docker.ping((err, data) => { if (lastConnectionStatus === null && data === null) { down(); + mb.window.webContents.send('send', 'update'); } if (lastConnectionStatus === null && data == 'OK') { @@ -42,6 +43,7 @@ function setIcon() { if (lastConnectionStatus === 'OK' && data === null) { down(); + mb.window.webContents.send('send', 'update'); } }); } diff --git a/src/app.js b/src/app.js index 67245ef..fca7d4d 100644 --- a/src/app.js +++ b/src/app.js @@ -92,6 +92,10 @@ function update() { }); } + if (err) { + containerList = containerList + `
  • ${err}
  • `; + } + if (containerList === '