Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {defineCustomElements as deckDeckGoSlideQRCodeElements } from '@deckdeckgo/slide-qrcode/dist/loader';
import {defineCustomElements as deckDeckGoSlideBigImgElements } from '@deckdeckgo/slide-big-img/dist/loader';
import {defineCustomElements as deckDeckGoSlideVideoElements } from '@deckdeckgo/slide-video/dist/loader';
import {defineCustomElements as deckDeckGoSlidePollElements } from '@deckdeckgo/slide-poll/dist/loader';
import { defineCustomElements as deckDeckGoRemoteElements } from '@deckdeckgo/remote/dist/loader';
import { defineCustomElements as deckDeckGoChartsElements } from '@deckdeckgo/charts/dist/loader';
import { defineCustomElements as deckDeckGoQRCodeElements } from '@deckdeckgo/qrcode/dist/loader';
import { defineCustomElements as deckDeckGoHighlightCodeElements } from '@deckdeckgo/highlight-code/dist/loader';
import { defineCustomElements as deckDeckGoLazyImgElements } from '@deckdeckgo/lazy-img/dist/loader';
import { defineCustomElements as deckDeckGoSocialElements } from '@deckdeckgo/social/dist/loader';
// Init web-social-share
import { defineCustomElements as webSocialShareElements } from 'web-social-share/dist/loader';
deckDeckGoElements(window).then(async () => {
await deckDeckGoChartsElements(window);
await deckDeckGoQRCodeElements(window);
await deckDeckGoHighlightCodeElements(window);
await deckDeckGoLazyImgElements(window);
await deckDeckGoSocialElements(window);
const promises = [];
promises.push(deckDeckGoSlideTitleElements(window));
promises.push(deckDeckGoSlideContentElements(window));
promises.push(deckDeckGoSlideAuthorElements(window));
promises.push(deckDeckGoSlideChartElements(window));
promises.push(deckDeckGoSlideYoutubeElements(window));
promises.push(deckDeckGoSlideSplitElements(window));
promises.push(deckDeckGoSlideCodeElements(window));
promises.push(deckDeckGoSlideCountdownElements(window));