aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src/js/main.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2016-11-02 18:09:40 +1100
committerSam Potts <me@sampotts.me>2016-11-02 18:09:40 +1100
commitefe54fbba4b4b1134fef87f7e839fbd0ba46418a (patch)
treea16cebfb78f7171dfc0efb3a31a042c7acad61ce /demo/src/js/main.js
parent10561d6c83dec922dda5b8e347bdb555ab6c8556 (diff)
downloadplyr-efe54fbba4b4b1134fef87f7e839fbd0ba46418a.tar.lz
plyr-efe54fbba4b4b1134fef87f7e839fbd0ba46418a.tar.xz
plyr-efe54fbba4b4b1134fef87f7e839fbd0ba46418a.zip
Added seek event fixes (fixes #409), Added support for URLs (fixes #345)
Diffstat (limited to 'demo/src/js/main.js')
-rw-r--r--demo/src/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/src/js/main.js b/demo/src/js/main.js
index 3337df88..56f7d634 100644
--- a/demo/src/js/main.js
+++ b/demo/src/js/main.js
@@ -94,7 +94,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;
}