From 6911c567097f5da2d24ae08a58525f08f38d5970 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Sat, 22 Oct 2016 02:41:16 -0400 Subject: [PATCH] Update Util.js --- frontend/src/Metamaps/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Metamaps/Util.js b/frontend/src/Metamaps/Util.js index d7d50d22..48a89b1d 100644 --- a/frontend/src/Metamaps/Util.js +++ b/frontend/src/Metamaps/Util.js @@ -123,7 +123,7 @@ const Util = { return (url.match(/^https?:\/\/(?:www\.)?youtube.com\/watch\?(?=[^?]*v=\w+)(?:[^\s?]+)?$/) != null) }, openLink: function(url){ - var win = (url != "") ? window.open(url, '_blank') : "empty"; + var win = (url !== "") ? window.open(url, '_blank') : "empty"; if (win) { //Browser has allowed it to be opened