otwieranie w nowej karcie
This commit is contained in:
parent
0eeef4e30e
commit
15c6db20b3
@ -87,13 +87,12 @@
|
|||||||
function ssh(ipvpn, username, password) {
|
function ssh(ipvpn, username, password) {
|
||||||
|
|
||||||
const currentLocation = window.location;
|
const currentLocation = window.location;
|
||||||
console.log("dziala");
|
|
||||||
// budowanie nowego URL
|
// budowanie nowego URL
|
||||||
const newUrl = currentLocation.protocol + '//' + currentLocation.hostname + ':' + {{ ssh_port }} + "/?hostname="+ipvpn+"&username="+username+"&password="+btoa(password);
|
const newUrl = currentLocation.protocol + '//' + currentLocation.hostname + ':' + {{ ssh_port }} + "/?hostname="+ipvpn+"&username="+username+"&password="+btoa(password);
|
||||||
console.log(newUrl);
|
console.log(newUrl);
|
||||||
|
|
||||||
// przekierowanie na nowy URL
|
// przekierowanie na nowy URL
|
||||||
window.location.replace(newUrl);
|
window.open(newUrl,"_blank");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user