From cb5b3c9cbf24f18dcb800aaf777c65d3e9c24885 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 20 Nov 2015 22:46:11 -0800 Subject: [PATCH] Fix nmlorg-discovered logic bug --- static/clicks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/clicks.js b/static/clicks.js index 8f8252a..c67b4f8 100644 --- a/static/clicks.js +++ b/static/clicks.js @@ -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; }