aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/fullscreen.js
diff options
context:
space:
mode:
authorydylla <ydylla@gmail.com>2020-03-23 22:50:19 +0100
committerydylla <ydylla@gmail.com>2020-03-23 22:56:32 +0100
commit71928443f317e624ab94ff18e207447f06f745ad (patch)
tree7dde5788b1f4e425527df136566d275960fc03f5 /src/js/fullscreen.js
parent3c127afeb9e0059d1352ecb5b790633177a70cc4 (diff)
downloadplyr-71928443f317e624ab94ff18e207447f06f745ad.tar.lz
plyr-71928443f317e624ab94ff18e207447f06f745ad.tar.xz
plyr-71928443f317e624ab94ff18e207447f06f745ad.zip
silence all internal play promises
Diffstat (limited to 'src/js/fullscreen.js')
-rw-r--r--src/js/fullscreen.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/fullscreen.js b/src/js/fullscreen.js
index c74b3406..5da89e9c 100644
--- a/src/js/fullscreen.js
+++ b/src/js/fullscreen.js
@@ -8,6 +8,7 @@ import browser from './utils/browser';
import { getElements, hasClass, toggleClass } from './utils/elements';
import { on, triggerEvent } from './utils/events';
import is from './utils/is';
+import { silencePromise } from './utils/promise';
class Fullscreen {
constructor(player) {
@@ -268,7 +269,7 @@ class Fullscreen {
// iOS native fullscreen
if (browser.isIos && this.player.config.fullscreen.iosNative) {
this.target.webkitExitFullscreen();
- this.player.play();
+ silencePromise(this.player.play());
} else if (!Fullscreen.native || this.forceFallback) {
this.toggleFallback(false);
} else if (!this.prefix) {