add image fallback
parent
f837dc5856
commit
527486f866
|
@ -106,7 +106,7 @@ function onAbbreviation() {
|
|||
}
|
||||
|
||||
function onImageFallback() {
|
||||
on(document, 'error', 'img', onError, { capture: true })
|
||||
document.addEventListener('error', onError, { capture: true })
|
||||
|
||||
function onError(event: Event) {
|
||||
if (event.target === null) return
|
||||
|
|
Loading…
Reference in New Issue