diff options
author | Sam Potts <sam@potts.es> | 2018-04-25 19:59:22 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-04-25 19:59:22 +1000 |
commit | 971e26106799d2f56a4235d7dbfd4b009c8a3496 (patch) | |
tree | c73da6bb3be152b9f9f2a8941a9c8a0b50f18962 /dist/plyr.polyfilled.js | |
parent | 27407ba021d71c39397679a5cf4b3e197652e392 (diff) | |
download | plyr-971e26106799d2f56a4235d7dbfd4b009c8a3496.tar.lz plyr-971e26106799d2f56a4235d7dbfd4b009c8a3496.tar.xz plyr-971e26106799d2f56a4235d7dbfd4b009c8a3496.zip |
Fix for iOS 9 throwing error for `name` property in fullscreen API (fixes #908)
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r-- | dist/plyr.polyfilled.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js index bb8b7b21..0f11fa96 100644 --- a/dist/plyr.polyfilled.js +++ b/dist/plyr.polyfilled.js @@ -6992,7 +6992,7 @@ var Fullscreen = function () { // Get prefix this.prefix = Fullscreen.prefix; - this.name = Fullscreen.name; + this.property = Fullscreen.property; // Scroll position this.scrollPosition = { x: 0, y: 0 }; @@ -7056,7 +7056,7 @@ var Fullscreen = function () { } else if (!this.prefix) { this.target.requestFullscreen(); } else if (!utils.is.empty(this.prefix)) { - this.target[this.prefix + 'Request' + this.name](); + this.target[this.prefix + 'Request' + this.property](); } } @@ -7079,7 +7079,7 @@ var Fullscreen = function () { (document.cancelFullScreen || document.exitFullscreen).call(document); } else if (!utils.is.empty(this.prefix)) { var action = this.prefix === 'moz' ? 'Cancel' : 'Exit'; - document['' + this.prefix + action + this.name](); + document['' + this.prefix + action + this.property](); } } @@ -7117,7 +7117,7 @@ var Fullscreen = function () { return utils.hasClass(this.target, this.player.config.classNames.fullscreen.fallback); } - var element = !this.prefix ? document.fullscreenElement : document['' + this.prefix + this.name + 'Element']; + var element = !this.prefix ? document.fullscreenElement : document['' + this.prefix + this.property + 'Element']; return element === this.target; } @@ -7161,7 +7161,7 @@ var Fullscreen = function () { return value; } }, { - key: 'name', + key: 'property', get: function get() { return this.prefix === 'moz' ? 'FullScreen' : 'Fullscreen'; } |