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

youtube-iframe

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-iframe - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

12

index.js

@@ -9,6 +9,9 @@ (function(window) {

load: function(callback) {
var _this = this;
this.listeners.push(callback);
if(this.loaded) {
this.done();
setTimeout(function() {
_this.done();
});
return;

@@ -23,3 +26,2 @@ }

var _this = this;
window.onYouTubeIframeAPIReady = function() {

@@ -39,7 +41,5 @@ _this.loaded = true;

for(var listenerIndex = 0; listenerIndex < this.listeners.length; listenerIndex++) {
this.listeners[listenerIndex](window.YT);
while(this.listeners.length) {
this.listeners.pop()(window.YT);
}
this.listeners.length = 0;
}

@@ -46,0 +46,0 @@ };

{
"name": "youtube-iframe",
"version": "1.0.1",
"version": "1.0.2",
"description": "Wrapper for dynamically loading the YouTube iframe api script",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -34,4 +34,9 @@ # youtube-iframe

### 1.0.2
* Always call the callback asynchronously (#2)
* Fixed a bug with infinite recursion when nesting load() calls
### 1.0.1
* Always use https instead of the protocol-relative URL (#1)

Sorry, the diff of this file is not supported yet

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