Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@justinribeiro/lite-youtube

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@justinribeiro/lite-youtube - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

15

lite-youtube.js

@@ -17,2 +17,7 @@ /**

class LiteYTEmbed extends HTMLElement {
constructor() {
super();
this.setupDom();
}
static get observedAttributes() {

@@ -31,4 +36,2 @@ return ['videoid'];

this.addEventListener('click', e => this.addIframe());
this.setupDom();
this.setupComponent();
}

@@ -161,4 +164,8 @@

this.setupComponent();
this.__domRefFrame.classList.remove('lyt-activated');
this.shadowRoot.querySelector('iframe').remove();
// if we have a previous iframe, remove it and the activated class
if (this.__domRefFrame.classList.contains('lyt-activated')) {
this.__domRefFrame.classList.remove('lyt-activated');
this.shadowRoot.querySelector('iframe').remove();
}
}

@@ -165,0 +172,0 @@ break;

@@ -10,3 +10,3 @@ {

"license": "MIT",
"version": "0.1.0",
"version": "0.1.1",
"main": "lite-youtube.js",

@@ -13,0 +13,0 @@ "module": "lite-youtube.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc