aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src
diff options
context:
space:
mode:
authorSam <me@sampotts.me>2016-09-06 23:48:09 +1000
committerSam <me@sampotts.me>2016-09-06 23:48:09 +1000
commit37840c384414401a914eb43aa7a93eb0e17ee68e (patch)
tree85d92b234e422276fffb9658d582508772e4980f /demo/src
parent28335ef3d8c8aaef959989bacd7d8af026898a53 (diff)
downloadplyr-37840c384414401a914eb43aa7a93eb0e17ee68e.tar.lz
plyr-37840c384414401a914eb43aa7a93eb0e17ee68e.tar.xz
plyr-37840c384414401a914eb43aa7a93eb0e17ee68e.zip
Working on settings menu
Diffstat (limited to 'demo/src')
-rw-r--r--demo/src/js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/src/js/main.js b/demo/src/js/main.js
index 80dab906..158736ae 100644
--- a/demo/src/js/main.js
+++ b/demo/src/js/main.js
@@ -21,7 +21,7 @@
captions: {
defaultActive: true
},
- controls: ['play-large', 'play', 'speed-up', 'progress', 'current-time', 'mute', 'volume', 'captions', 'fullscreen']
+ controls: ['play-large', 'play', 'speed-up', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'fullscreen']
});
plyr.loadSprite('dist/demo.svg');
@@ -95,7 +95,7 @@
// 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;
}