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:
@@ -156,6 +156,8 @@ function FaceToggle()
|
|||||||
// also deals with fullsecreen if needed
|
// also deals with fullsecreen if needed
|
||||||
function ViewImageOrVideo()
|
function ViewImageOrVideo()
|
||||||
{
|
{
|
||||||
|
// can happen if no content to display
|
||||||
|
if( ! document.viewing ) return
|
||||||
if( document.viewing.type.name == 'Image' )
|
if( document.viewing.type.name == 'Image' )
|
||||||
{
|
{
|
||||||
im.src='../' + document.viewing.FullPathOnFS
|
im.src='../' + document.viewing.FullPathOnFS
|
||||||
|
|||||||
Reference in New Issue
Block a user