diff --git a/shared/js/BrowserIPC.ts b/shared/js/BrowserIPC.ts
index 977088cb..b7271f6e 100644
--- a/shared/js/BrowserIPC.ts
+++ b/shared/js/BrowserIPC.ts
@@ -1,5 +1,3 @@
-//Used by CertAccept popup
-
interface Window {
BroadcastChannel: BroadcastChannel;
}
@@ -258,6 +256,17 @@ namespace bipc {
}
export namespace connect {
+ export type ConnectRequestData = {
+ address: string;
+
+ profile?: string;
+ username?: string;
+ password?: {
+ value: string;
+ hashed: boolean;
+ };
+ }
+
export interface ConnectOffer {
request_id: string;
data: ConnectRequestData;
diff --git a/shared/js/main.ts b/shared/js/main.ts
index 8071c1ea..0a9a0d37 100644
--- a/shared/js/main.ts
+++ b/shared/js/main.ts
@@ -290,17 +290,7 @@ interface Window {
}
*/
-type ConnectRequestData = {
- address: string;
-
- profile?: string;
- username?: string;
- password?: {
- value: string;
- hashed: boolean;
- };
-}
-function handle_connect_request(properties: ConnectRequestData, connection: ConnectionHandler) {
+function handle_connect_request(properties: bipc.connect.ConnectRequestData, connection: ConnectionHandler) {
const profile_uuid = properties.profile || (profiles.default_profile() || {id: 'default'}).id;
const profile = profiles.find_profile(profile_uuid) || profiles.default_profile();
const username = properties.username || profile.connect_username();
diff --git a/shared/js/ui/view.ts b/shared/js/ui/view.ts
index f471a21c..9ccd7d34 100644
--- a/shared/js/ui/view.ts
+++ b/shared/js/ui/view.ts
@@ -2,7 +2,11 @@
///
///
///
+///
+///
+///
///
+///
class ChannelTree {