Null check
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user