aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-04-24 00:22:17 +1000
committerSam Potts <sam@potts.es>2020-04-24 00:22:17 +1000
commit2458eaa11b5c2805bcf1e5349ab900485bac325f (patch)
tree8c38683d043fdfbe8b1dcb385a446de4df7396a1 /src/js/plyr.js
parenta97008aeebb19678e5183e7c934e60729857e11b (diff)
parentdbe618c644a525b196466b7254274cc9bde76275 (diff)
downloadplyr-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.js7
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);