make videosTable thumbnail check more strict

helping-hand
Moe 2022-11-22 18:14:58 -08:00
parent 52f4bf9a96
commit f6b45ff89e
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ $(document).ready(function(e){
var frameUrlCacheTimeouts = {}
async function getSnapshotFromVideoTimeFrame(monitorId,startDate,endDate){
const frameUrlCacheId = `${monitorId}${startDate}${endDate}`
if(frameUrlCache[frameUrlCacheId]){
if(typeof frameUrlCache[frameUrlCacheId] === 'string'){
return frameUrlCache[frameUrlCacheId]
}else{
const frame = (await getTimelapseFrames(monitorId,startDate,endDate,1))[0]