* Set default image if nothing was found for category thumbnail
This commit is contained in:
parent
3230d7b762
commit
c90d969e74
Binary file not shown.
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 129 B |
BIN
frontend/themes/clippable/static/cantfindshit.gif
Normal file
BIN
frontend/themes/clippable/static/cantfindshit.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 MiB |
@ -15,8 +15,11 @@ class Category {
|
||||
|
||||
let nail = document.createElement('img')
|
||||
nail.className = 'pure-img'
|
||||
|
||||
if(!(this.thumbnail_b64 == null || this.thumbnail_b64.length == 0)) {
|
||||
nail.setAttribute('src', `data:image/jpg;base64,${this.thumbnail_b64}`)
|
||||
} else{
|
||||
nail.setAttribute('src', '/cantfindshit.gif')
|
||||
}
|
||||
|
||||
container.appendChild(title)
|
||||
|
Loading…
Reference in New Issue
Block a user