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 allShadowImagesComponents: NodeListOf = el.querySelectorAll(':scope > [slot=\'background\'] deckgo-lazy-img');
const images: HTMLElement[] = Array.from(allShadowImagesComponents);
await lazyLoadSelectedLazyImagesComponent(images);
resolve();
});
}
return new Promise(async (resolve) => {
const images: HTMLElement[] = getAllImages(el, 'deckgo-lazy-img');
await lazyLoadSelectedLazyImagesComponent(images);
resolve();
});
}