@justinribeiro/lite-youtube
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -190,3 +190,4 @@ /** | ||
__addIframe() { | ||
const iframeHTML = ` | ||
if (!this.__iframeLoaded) { | ||
const iframeHTML = ` | ||
<iframe frameborder="0" | ||
@@ -196,5 +197,6 @@ allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen | ||
></iframe>`; | ||
this.__domRefFrame.insertAdjacentHTML('beforeend', iframeHTML); | ||
this.__domRefFrame.classList.add('lyt-activated'); | ||
this.__iframeLoaded = true; | ||
this.__domRefFrame.insertAdjacentHTML('beforeend', iframeHTML); | ||
this.__domRefFrame.classList.add('lyt-activated'); | ||
this.__iframeLoaded = true; | ||
} | ||
} | ||
@@ -201,0 +203,0 @@ |
@@ -10,3 +10,3 @@ { | ||
"license": "MIT", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"main": "lite-youtube.js", | ||
@@ -13,0 +13,0 @@ "module": "lite-youtube.js", |
@@ -43,3 +43,3 @@ [![npm version](https://badge.fury.io/js/%40justinribeiro%2Flite-youtube.svg)](https://badge.fury.io/js/%40justinribeiro%2Flite-youtube) | ||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/lite-youtube@0.6.0/lite-youtube.js"> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/lite-youtube@0.6.1/lite-youtube.js"> | ||
``` | ||
@@ -46,0 +46,0 @@ |
17891
330