Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "YouTube/Loader/index"

Index

Modules

Variables

Variables

Const loadYouTube

loadYouTube: Task<undefined, undefined> = new Task<undefined, undefined>((rejct, resolve) => {window.onYouTubeIframeAPIReady = () => resolve(undefined);if (typeof YT !== 'undefined' && typeof YT.Player !== 'undefined') {resolve(undefined);} else {const uri = '//www.youtube.com/iframe_api';const script = document.createElement('script');script.src = uri;script.type = 'text/javascript';document.head.appendChild(script);}return () => {console.warn('Loading YouTube Iframe Api cannot be cancelled');};})

Lazy Task. When forked, embeds the YouTube Iframe API in the current web page

Generated using TypeDoc