fix: make getActivePortals return an array, not a set

This commit is contained in:
Derrick Hammer 2023-06-23 19:14:29 -04:00
parent beb60c23b3
commit d8e2046ebd
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 2 deletions

View File

@ -50,8 +50,8 @@ export function generatePortalKeyPair(portal: Portal): KeyPair {
};
}
export function getActivePortals(): Set<Client> {
return ACTIVE_PORTALS;
export function getActivePortals(): Client[] {
return [...ACTIVE_PORTALS];
}
export function addActivePortal(portal: Client) {
@ -76,6 +76,7 @@ export function initPortal(portal: Portal) {
addActivePortal(client);
}
export function getPortalSessions() {
let portalSessionsData = window.localStorage.getItem("portals");
let portalSessions: PortalSessionsStore = {};