Null check
This commit is contained in:
parent
3220d06616
commit
795566ccef
1 changed files with 2 additions and 2 deletions
|
@ -79,8 +79,8 @@ export async function initClient(
|
||||||
// options we always pass to the client (stuff that we need in order to work)
|
// options we always pass to the client (stuff that we need in order to work)
|
||||||
const baseOpts = {
|
const baseOpts = {
|
||||||
fallbackICEServerAllowed: fallbackICEServerAllowed,
|
fallbackICEServerAllowed: fallbackICEServerAllowed,
|
||||||
localSfuUserId: Config.get().temp_sfu.user_id,
|
localSfuUserId: Config.get().temp_sfu?.user_id,
|
||||||
localSfuDeviceId: Config.get().temp_sfu.device_id,
|
localSfuDeviceId: Config.get().temp_sfu?.device_id,
|
||||||
} as ICreateClientOpts;
|
} as ICreateClientOpts;
|
||||||
|
|
||||||
if (indexedDB && localStorage && !import.meta.env.DEV) {
|
if (indexedDB && localStorage && !import.meta.env.DEV) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue