Fix nmlorg-discovered logic bug

This commit is contained in:
Ian Gulliver
2015-11-20 22:46:11 -08:00
parent 66c626ecd9
commit cb5b3c9cbf

View File

@@ -121,7 +121,7 @@ Clicks.prototype.onAddVideoValueChanged_ = function(e) {
var parse = document.createElement('a');
parse.href = value;
if (parse.hostname == 'youtu.be' || parse.hostname == 'www.youtu.be' && parse.pathname.length == 12) {
if ((parse.hostname == 'youtu.be' || parse.hostname == 'www.youtu.be') && parse.pathname.length == 12) {
this.addVideo(parse.pathname.substring(1));
return;
}