Update Util.js

This commit is contained in:
Robert Best 2016-10-22 02:41:16 -04:00 committed by GitHub
parent 03ef93bf0c
commit 6911c56709

View file

@ -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