Implement media element state syncing for media sender

This commit is contained in:
hensm
2022-09-01 05:58:40 +01:00
committed by Matt Hensman
parent 6562294586
commit 29e92ad078
2 changed files with 82 additions and 6 deletions

View File

@@ -75,7 +75,8 @@ export default class Media {
}
get #lastUpdateTime() {
const lastUpdateTime = MediaLastUpdateTimes.get(this);
if (!lastUpdateTime) throw logger.error("Missing last update time!");
if (lastUpdateTime === undefined)
throw logger.error("Missing last update time!");
return lastUpdateTime;
}