mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +00:00
fix: src/js/file.js
This commit is contained in:
parent
4f2cf3123b
commit
7c4206a4e2
@ -171,7 +171,7 @@ page.loadFileinfo = () => {
|
||||
img.setAttribute('alt', page.file.name || '')
|
||||
img.src = `${page.uploadRoot}/${page.file.name}`
|
||||
img.parentNode.classList.remove('is-hidden')
|
||||
img.onerror = event => event.currentTarget.classList.add('is-hidden')
|
||||
img.onerror = event => event.currentTarget.parentNode.classList.add('is-hidden')
|
||||
|
||||
const isvideo = page.file.type.startsWith('video/')
|
||||
const isaudio = page.file.type.startsWith('audio/')
|
||||
|
Loading…
Reference in New Issue
Block a user