diff options
author | Samuel Mannehed <samuel@cendio.se> | 2016-10-24 13:35:06 +0200 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2016-10-24 13:35:06 +0200 |
commit | daca5b17276749517bb2fd6c8fd349f70a9b8f8d (patch) | |
tree | b2612e5328640f892746e061ee9e75b8cc8a34ea | |
parent | 9b3d363d07ab0076e66fc496d6a4ecabe4c3bb83 (diff) | |
download | novnc-daca5b17276749517bb2fd6c8fd349f70a9b8f8d.tar.gz |
Reformat lines to avoid line-breaks
-rw-r--r-- | app/ui.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -363,6 +363,7 @@ var UI; * ------v------*/ updateState: function(rfb, state, oldstate) { + var msg; switch (state) { case 'connecting': UI.showStatus("Connecting"); @@ -370,12 +371,11 @@ var UI; case 'connected': UI.connected = true; if (rfb && rfb.get_encrypt()) { - UI.showStatus("Connected (encrypted) to " + - UI.desktopName); + msg = "Connected (encrypted) to " + UI.desktopName; } else { - UI.showStatus("Connected (unencrypted) to " + - UI.desktopName); + msg = "Connected (unencrypted) to " + UI.desktopName; } + UI.showStatus(msg); break; case 'disconnecting': UI.showStatus("Disconnecting"); |