Null check

This commit is contained in:
David Baker 2022-12-21 18:12:53 +00:00
parent 3220d06616
commit 795566ccef

View File

@ -79,8 +79,8 @@ export async function initClient(
// options we always pass to the client (stuff that we need in order to work)
const baseOpts = {
fallbackICEServerAllowed: fallbackICEServerAllowed,
localSfuUserId: Config.get().temp_sfu.user_id,
localSfuDeviceId: Config.get().temp_sfu.device_id,
localSfuUserId: Config.get().temp_sfu?.user_id,
localSfuDeviceId: Config.get().temp_sfu?.device_id,
} as ICreateClientOpts;
if (indexedDB && localStorage && !import.meta.env.DEV) {