mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 04:12:41 +03:00
Fix auto display: none not working
`this` probably refers to something else
This commit is contained in:
parent
f896225707
commit
e6ed64cfd0
1 changed files with 4 additions and 2 deletions
|
@ -220,8 +220,10 @@ function Card({ card }) {
|
|||
height={height}
|
||||
loading="lazy"
|
||||
alt=""
|
||||
onError={() => {
|
||||
this.style.display = 'none';
|
||||
onError={(e) => {
|
||||
try {
|
||||
e.target.style.display = 'none';
|
||||
} catch (e) {}
|
||||
}}
|
||||
/>
|
||||
<div class="meta-container">
|
||||
|
|
Loading…
Reference in a new issue