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 => {
|
||||
spawnConnectModalNew({
|
||||
connectInANewTab: true
|
||||
connectInANewTab: event.newTab
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -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}))$/,
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue