aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-18 22:17:34 +1000
committerSam Potts <sam@potts.es>2018-06-18 22:17:34 +1000
commitd64ed4ba5a53547e255eda85d8ab7801298921fc (patch)
tree5652be59152169401667fa9264278a9a97c57bc6 /demo/src/js
parentffd864ed39340c081adb9e4a45b3c9cfe4c139e3 (diff)
parent22d524ac9d1a688d8493de0b79ff95842353e4b7 (diff)
downloadplyr-d64ed4ba5a53547e255eda85d8ab7801298921fc.tar.lz
plyr-d64ed4ba5a53547e255eda85d8ab7801298921fc.tar.xz
plyr-d64ed4ba5a53547e255eda85d8ab7801298921fc.zip
Merge branch 'develop' into a11y-improvements
# Conflicts: # dist/plyr.js.map # dist/plyr.min.js # dist/plyr.min.js.map
Diffstat (limited to 'demo/src/js')
-rw-r--r--demo/src/js/demo.js26
1 files changed, 17 insertions, 9 deletions
diff --git a/demo/src/js/demo.js b/demo/src/js/demo.js
index 003e85d5..fbf70f72 100644
--- a/demo/src/js/demo.js
+++ b/demo/src/js/demo.js
@@ -143,7 +143,11 @@ import Raven from 'raven-js';
// Set a new source
function newSource(type, init) {
// Bail if new type isn't known, it's the current type, or current type is empty (video is default) and new type is video
- if (!(type in types) || (!init && type === currentType) || (!currentType.length && type === types.video)) {
+ if (
+ !(type in types) ||
+ (!init && type === currentType) ||
+ (!currentType.length && type === types.video)
+ ) {
return;
}
@@ -215,10 +219,12 @@ import Raven from 'raven-js';
case types.youtube:
player.source = {
type: 'video',
- sources: [{
- src: 'https://youtube.com/watch?v=bTqVqk7FSmY',
- provider: 'youtube',
- }],
+ sources: [
+ {
+ src: 'https://youtube.com/watch?v=bTqVqk7FSmY',
+ provider: 'youtube',
+ },
+ ],
};
break;
@@ -226,10 +232,12 @@ import Raven from 'raven-js';
case types.vimeo:
player.source = {
type: 'video',
- sources: [{
- src: 'https://vimeo.com/76979871',
- provider: 'vimeo',
- }],
+ sources: [
+ {
+ src: 'https://vimeo.com/76979871',
+ provider: 'vimeo',
+ },
+ ],
};
break;