@thelevicole/youtube-to-html5-loader
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "@thelevicole/youtube-to-html5-loader", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A javascript library to load YoutTube videos as HTML5 emebed elements.", | ||
@@ -5,0 +5,0 @@ "main": "dist/YouTubeToHtml5.js", |
@@ -29,3 +29,3 @@ # Load YoutTube videos as HTML5 emebed element | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@thelevicole/youtube-to-html5-loader@3.0.0/dist/YouTubeToHtml5.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@thelevicole/youtube-to-html5-loader@3.0.1/dist/YouTubeToHtml5.min.js"></script> | ||
``` | ||
@@ -32,0 +32,0 @@ |
@@ -11,6 +11,14 @@ 'use strict'; | ||
/** | ||
* Create an empty object for storing options. | ||
* @type {object} | ||
*/ | ||
this.options = {}; | ||
// Basic option setting. | ||
for ( var key in this.options ) { | ||
for ( var key in this.defaultOptions ) { | ||
if ( key in options ) { | ||
this.options[ key ] = options[ key ]; | ||
} else { | ||
this.options[ key ] = this.defaultOptions[ key ]; | ||
} | ||
@@ -26,7 +34,7 @@ } | ||
/** | ||
* Store overridable options. | ||
* Default settable options. | ||
* | ||
* @type {object} | ||
*/ | ||
YouTubeToHtml5.prototype.options = { | ||
YouTubeToHtml5.prototype.defaultOptions = { | ||
selector: 'video[data-yt2html5]', | ||
@@ -33,0 +41,0 @@ attribute: 'data-yt2html5', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24246
429