aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src/js/main.js
diff options
context:
space:
mode:
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;
}