From 15c6db20b36f57f902b9bbab2156dd11f5d31111 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Wed, 19 Apr 2023 09:51:32 +0200 Subject: [PATCH] otwieranie w nowej karcie --- templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index e98aaea..5d8686d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -87,13 +87,12 @@ 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); + window.open(newUrl,"_blank"); }