catch all to cover when we try to view an img/video and the dir contents is empty, so nothing to show

This commit is contained in:
2025-09-30 18:38:20 +10:00
parent 70ca93b14e
commit 4bb99ce589

View File

@@ -156,6 +156,8 @@ function FaceToggle()
// also deals with fullsecreen if needed
function ViewImageOrVideo()
{
// can happen if no content to display
if( ! document.viewing ) return
if( document.viewing.type.name == 'Image' )
{
im.src='../' + document.viewing.FullPathOnFS