diff options
author | Albin Larsson <mail@albinlarsson.com> | 2018-04-05 20:29:01 +0200 |
---|---|---|
committer | Albin Larsson <mail@albinlarsson.com> | 2018-04-05 20:29:01 +0200 |
commit | 3082d0d128b5f0c91a264f750f7fdc93be96fafa (patch) | |
tree | 928b7b4c352866e2e9d9f4a39f1c11b2e05d8fc7 /src/js/fullscreen.js | |
parent | f7e242f0545d176b6c4e7bb49e1faa7671884628 (diff) | |
download | plyr-3082d0d128b5f0c91a264f750f7fdc93be96fafa.tar.lz plyr-3082d0d128b5f0c91a264f750f7fdc93be96fafa.tar.xz plyr-3082d0d128b5f0c91a264f750f7fdc93be96fafa.zip |
Fixes #873 Can't leave fullscreen in Chrome (using button)
Diffstat (limited to 'src/js/fullscreen.js')
-rw-r--r-- | src/js/fullscreen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/fullscreen.js b/src/js/fullscreen.js index 55b5c804..857a2edc 100644 --- a/src/js/fullscreen.js +++ b/src/js/fullscreen.js @@ -193,7 +193,7 @@ class Fullscreen { } else if (!Fullscreen.native) { toggleFallback.call(this, false); } else if (!this.prefix) { - document.cancelFullScreen(); + (document.cancelFullScreen || document.exitFullscreen).call(document); } else if (!utils.is.empty(this.prefix)) { const action = this.prefix === 'moz' ? 'Cancel' : 'Exit'; document[`${this.prefix}${action}${this.name}`](); |