mirror of
https://github.com/koush/scrypted.git
synced 2026-03-01 08:42:57 +00:00
rebroadcast: Use optional chaining for allowBatteryPrebuffer (#1986)
This commit is contained in:
@@ -1358,7 +1358,7 @@ class PrebufferMixin extends SettingsMixinDeviceBase<VideoCamera> implements Vid
|
||||
}
|
||||
const name = mso?.name;
|
||||
const enabled = enabledIds.includes(id);
|
||||
session = new PrebufferSession(this, mso, enabled, mso.allowBatteryPrebuffer);
|
||||
session = new PrebufferSession(this, mso, enabled, mso?.allowBatteryPrebuffer ?? false);
|
||||
this.sessions.set(id, session);
|
||||
|
||||
if (!enabled) {
|
||||
|
||||
Reference in New Issue
Block a user