v3.6.2
This commit is contained in:
16
dist/plyr.polyfilled.js
vendored
16
dist/plyr.polyfilled.js
vendored
@ -4211,7 +4211,7 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Map" || n === "Set") return Array.from(o);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
|
||||
@ -7320,7 +7320,7 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
|
||||
var event = new CustomEvent(type, {
|
||||
bubbles: bubbles,
|
||||
detail: _objectSpread2({}, detail, {
|
||||
detail: _objectSpread2(_objectSpread2({}, detail), {}, {
|
||||
plyr: this
|
||||
})
|
||||
}); // Dispatch the event
|
||||
@ -8107,7 +8107,7 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
var attr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var text = i18n.get(key, this.config);
|
||||
|
||||
var attributes = _objectSpread2({}, attr, {
|
||||
var attributes = _objectSpread2(_objectSpread2({}, attr), {}, {
|
||||
class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' ')
|
||||
});
|
||||
|
||||
@ -9107,7 +9107,7 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
showMenuPanel = controls.showMenuPanel;
|
||||
this.elements.controls = null; // Larger overlaid play button
|
||||
|
||||
if (this.config.controls.includes('play-large')) {
|
||||
if (is$1.array(this.config.controls) && this.config.controls.includes('play-large')) {
|
||||
this.elements.container.appendChild(createButton.call(this, 'play-large'));
|
||||
} // Create the container
|
||||
|
||||
@ -9119,7 +9119,7 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
class: 'plyr__controls__item'
|
||||
}; // Loop through controls in order
|
||||
|
||||
dedupe(this.config.controls).forEach(function (control) {
|
||||
dedupe(is$1.array(this.config.controls) ? this.config.controls : []).forEach(function (control) {
|
||||
// Restart button
|
||||
if (control === 'restart') {
|
||||
container.appendChild(createButton.call(_this10, 'restart', defaultAttributes));
|
||||
@ -9438,8 +9438,6 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
if (update) {
|
||||
if (is$1.string(this.config.controls)) {
|
||||
container = replace(container);
|
||||
} else if (is$1.element(container)) {
|
||||
container.innerHTML = replace(container.innerHTML);
|
||||
}
|
||||
} // Controls container
|
||||
|
||||
@ -9977,7 +9975,7 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
// Sprite (for icons)
|
||||
loadSprite: true,
|
||||
iconPrefix: 'plyr',
|
||||
iconUrl: 'https://cdn.plyr.io/3.6.1/plyr.svg',
|
||||
iconUrl: 'https://cdn.plyr.io/3.6.2/plyr.svg',
|
||||
// Blank video (used to prevent errors on source change)
|
||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||
// Quality default
|
||||
@ -14926,7 +14924,7 @@ typeof navigator === "object" && (function (global, factory) {
|
||||
|
||||
var hiding = toggleClass(this.elements.container, this.config.classNames.hideControls, force); // Close menu
|
||||
|
||||
if (hiding && this.config.controls.includes('settings') && !is$1.empty(this.config.settings)) {
|
||||
if (hiding && is$1.array(this.config.controls) && this.config.controls.includes('settings') && !is$1.empty(this.config.settings)) {
|
||||
controls.toggleMenu.call(this, false);
|
||||
} // Trigger event on change
|
||||
|
||||
|
Reference in New Issue
Block a user