diff options
author | Sam Potts <sam@potts.es> | 2020-04-24 00:22:17 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-04-24 00:22:17 +1000 |
commit | 2458eaa11b5c2805bcf1e5349ab900485bac325f (patch) | |
tree | 8c38683d043fdfbe8b1dcb385a446de4df7396a1 /src/js/plyr.js | |
parent | a97008aeebb19678e5183e7c934e60729857e11b (diff) | |
parent | dbe618c644a525b196466b7254274cc9bde76275 (diff) | |
download | plyr-2458eaa11b5c2805bcf1e5349ab900485bac325f.tar.lz plyr-2458eaa11b5c2805bcf1e5349ab900485bac325f.tar.xz plyr-2458eaa11b5c2805bcf1e5349ab900485bac325f.zip |
Merge branch 'develop' into css-variables
# Conflicts:
# src/js/captions.js
# src/js/config/defaults.js
# src/js/fullscreen.js
# src/js/listeners.js
# src/js/plyr.js
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 14050929..a3bdb285 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -80,6 +80,7 @@ class Plyr { // Elements cache this.elements = { container: null, + fullscreen: null, captions: null, buttons: {}, display: {}, @@ -285,6 +286,9 @@ class Plyr { }); } + // Setup fullscreen + this.fullscreen = new Fullscreen(this); + // Setup interface // If embed but not fully supported, build interface now to avoid flash of controls if (this.isHTML5 || (this.isEmbed && !this.supported.ui)) { @@ -297,9 +301,6 @@ class Plyr { // Global listeners this.listeners.global(); - // Setup fullscreen - this.fullscreen = new Fullscreen(this); - // Setup ads if provided if (this.config.ads.enabled) { this.ads = new Ads(this); |