mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Fix image entries not displaying correctly.
This commit is contained in:
parent
c52491f3c1
commit
e05a0ce5f6
@ -99,7 +99,7 @@ function View()
|
||||
}
|
||||
}
|
||||
|
||||
if (SETTINGS.SHOWIMAG && this.isDefined(value.TYP) && value.TYPE === 'image')
|
||||
if (SETTINGS.SHOWIMAG && this.isDefined(value.TYPE) && value.TYPE[0] === 'image')
|
||||
{
|
||||
itemClass += " griditem-image";
|
||||
}
|
||||
@ -265,7 +265,7 @@ function View()
|
||||
|
||||
// IMAGE
|
||||
if (SETTINGS.SHOWIMAG && this.isDefined(value.TYPE)
|
||||
&& value.TYPE === 'image' && this.isDefined(value.FILE))
|
||||
&& value.TYPE[0] === 'image' && this.isDefined(value.FILE))
|
||||
{
|
||||
entry += `<div class="image">`;
|
||||
if (SETTINGS.SHOWOVERLAY)
|
||||
|
Loading…
Reference in New Issue
Block a user