aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWalter Cruz <waltercruz@gmail.com>2017-08-28 10:19:29 -0300
committerWalter Cruz <waltercruz@gmail.com>2017-08-28 10:19:29 -0300
commitf50f0eb63d0bde1fb85395ce0d7f727f6f052f4b (patch)
treebd7d577df5566376557531afb77dfc1dbc18cf07 /src
parent3fe0c7c84b00e5b2ea0e560782b60a4d96000f67 (diff)
downloadplyr-f50f0eb63d0bde1fb85395ce0d7f727f6f052f4b.tar.lz
plyr-f50f0eb63d0bde1fb85395ce0d7f727f6f052f4b.tar.xz
plyr-f50f0eb63d0bde1fb85395ce0d7f727f6f052f4b.zip
Adding title to the player html template
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 352e0114..09d7ee7f 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1298,6 +1298,11 @@
// Replace all id references with random numbers
html = _replaceAll(html, '{id}', Math.floor(Math.random() * (10000)));
+ // Replace Title, if it exists
+ if (config.title){
+ html = _replaceAll(html, '{title}', config.title);
+ }
+
// Controls container
var target;