Hide creds on connection

This commit is contained in:
Eric Swanson 2017-09-06 14:32:41 -07:00
parent 49031257f2
commit 168ffd5123
1 changed files with 8 additions and 4 deletions

View File

@ -290,10 +290,14 @@
return; // don't continue trying to connect return; // don't continue trying to connect
} }
var coyoteName = WebUtil.getConfigVar('name', ''); var coyoteName = WebUtil.getConfigVar('name', '');
var elm = document.getElementById('zn-download-link'); var elm = document.getElementById('zn-download-link');
elm.href = '/download/' + coyoteName; elm.href = '/download/' + coyoteName;
elm.style.display = ''; elm.style.display = '';
// Scrub the query params from the URL so that it can be safely copy/pasted
console.log("Pushing new URL. Original: " + window.location.href);
window.history.replaceState({}, document.title, window.location.pathname);
rfb.connect(host, port, password, path); rfb.connect(host, port, password, path);
}; };