Some minor bugfixing

master
WolverinDEV 2021-01-10 14:26:35 +01:00 committed by WolverinDEV
parent 3b12badcc1
commit 7ce2f10662
3 changed files with 2 additions and 3 deletions

View File

@ -172,7 +172,7 @@ export function initialize(event_registry: Registry<ClientGlobalControlEvents>)
event_registry.on("action_open_window_connect", event => {
spawnConnectModalNew({
connectInANewTab: true
connectInANewTab: event.newTab
});
});

View File

@ -1,5 +1,3 @@
declare const native_client;
export const Regex = {
//DOMAIN<:port>
DOMAIN: /^(localhost|((([a-zA-Z0-9_-]{0,63}\.){0,253})?[a-zA-Z0-9_-]{0,63}\.[a-zA-Z]{2,64}))(|:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[0-5]?[0-9]{1,46}))$/,

View File

@ -393,6 +393,7 @@ export function spawnConnectModalNew(options: ConnectModalOptions) {
let connection: ConnectionHandler;
if(event.newTab) {
connection = server_connections.spawn_server_connection();
server_connections.set_active_connection(connection);
} else {
connection = server_connections.active_connection();
}