Fixed compile errors
This commit is contained in:
parent
95a1b5d900
commit
dcc3638ec3
3 changed files with 16 additions and 13 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
/// <reference path="../proto.ts" />
|
||||
/// <reference path="channel.ts" />
|
||||
/// <reference path="client.ts" />
|
||||
/// <reference path="server.ts" />
|
||||
/// <reference path="../bookmarks.ts" />
|
||||
/// <reference path="elements/context_menu.ts" />
|
||||
/// <reference path="modal/ModalCreateChannel.ts" />
|
||||
/// <reference path="../../backend/ppt.d.ts" />
|
||||
|
||||
|
||||
class ChannelTree {
|
||||
|
|
Loading…
Add table
Reference in a new issue