Skip to content

Commit

Permalink
Merge pull request #18 from osuosl/bug/18015
Browse files Browse the repository at this point in the history
Change if statement to check if vars are undefined
  • Loading branch information
tschuy committed Feb 25, 2015
2 parents d5dae9c + 78bdd7f commit 50e5900
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ganeti_webmgr/static/js/noVNC.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ $(function () {


function show_errors() {
if (host===false || port===false || password===false) {
if (host===false || host===undefined ||
port===false || port===undefined ||
password===false || password===undefined) {
connected = false;
vnc_status_bar
.attr("class", "VNC_status_error")
Expand Down

0 comments on commit 50e5900

Please sign in to comment.