diff --git a/themes/tfsci/assets/main.ts b/themes/tfsci/assets/main.ts index f072b97..3a39be3 100644 --- a/themes/tfsci/assets/main.ts +++ b/themes/tfsci/assets/main.ts @@ -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