Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise(async (resolve) => {
const images: HTMLElement[] = getAllImages(el, 'img');
await lazyLoadSelectedImages(images);
resolve();
});
}
return new Promise(async (resolve) => {
const allSlottedImages: NodeListOf = el.querySelectorAll('img[slot=\'background\']');
const allShadowImages: NodeListOf = el.querySelectorAll('[slot=\'background\'] img');
const images: HTMLElement[] = Array.from(allSlottedImages).concat(Array.from(allShadowImages));
await lazyLoadSelectedImages(images);
resolve();
});
}