Gildas 5 лет назад
Родитель
Сommit
46cf26aac5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/single-file/processors/lazy/content/content-lazy-loader.js

+ 1 - 1
lib/single-file/processors/lazy/content/content-lazy-loader.js

@@ -98,7 +98,7 @@ this.singlefile.lib.processors.lazy.content.loader = this.singlefile.lib.process
 			function onResourceLoad(event) {
 				const element = event.target;
 				element.removeAttribute(singlefile.lib.helper.LAZY_SRC_ATTRIBUTE_NAME);
-				element.removeEventListener(onResourceLoad);
+				element.removeEventListener("load", onResourceLoad);
 			}
 
 			async function onImageLoadEvent(event) {