From 5e537eee50fc4d3282d1d2a9ddc3234f318367b4 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Wed, 19 Apr 2023 09:46:53 +0200 Subject: [PATCH] - --- templates/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index d8301d4..8018f38 100644 --- a/templates/index.html +++ b/templates/index.html @@ -77,7 +77,7 @@ {{ machine.image_name }} {{ machine.start_time }} {{ machine.ip }} - + {% endfor %} @@ -87,9 +87,10 @@ function ssh(ipvpn, username, password) { const currentLocation = window.location; - + console.log("dziala"); // budowanie nowego URL const newUrl = currentLocation.protocol + '//' + currentLocation.hostname + ':' + ssh_port + "/?hostname="+ipvpn+"&username="+username+"&password="+btoa(password); + console.log(newUrl); // przekierowanie na nowy URL window.location.replace(newUrl);