Some minor bugfixing
parent
3b12badcc1
commit
7ce2f10662
|
@ -172,7 +172,7 @@ export function initialize(event_registry: Registry<ClientGlobalControlEvents>)
|
||||||
|
|
||||||
event_registry.on("action_open_window_connect", event => {
|
event_registry.on("action_open_window_connect", event => {
|
||||||
spawnConnectModalNew({
|
spawnConnectModalNew({
|
||||||
connectInANewTab: true
|
connectInANewTab: event.newTab
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
declare const native_client;
|
|
||||||
|
|
||||||
export const Regex = {
|
export const Regex = {
|
||||||
//DOMAIN<:port>
|
//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}))$/,
|
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}))$/,
|
||||||
|
|
|
@ -393,6 +393,7 @@ export function spawnConnectModalNew(options: ConnectModalOptions) {
|
||||||
let connection: ConnectionHandler;
|
let connection: ConnectionHandler;
|
||||||
if(event.newTab) {
|
if(event.newTab) {
|
||||||
connection = server_connections.spawn_server_connection();
|
connection = server_connections.spawn_server_connection();
|
||||||
|
server_connections.set_active_connection(connection);
|
||||||
} else {
|
} else {
|
||||||
connection = server_connections.active_connection();
|
connection = server_connections.active_connection();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue