Update Util.js
This commit is contained in:
parent
03ef93bf0c
commit
6911c56709
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ const Util = {
|
||||||
return (url.match(/^https?:\/\/(?:www\.)?youtube.com\/watch\?(?=[^?]*v=\w+)(?:[^\s?]+)?$/) != null)
|
return (url.match(/^https?:\/\/(?:www\.)?youtube.com\/watch\?(?=[^?]*v=\w+)(?:[^\s?]+)?$/) != null)
|
||||||
},
|
},
|
||||||
openLink: function(url){
|
openLink: function(url){
|
||||||
var win = (url != "") ? window.open(url, '_blank') : "empty";
|
var win = (url !== "") ? window.open(url, '_blank') : "empty";
|
||||||
|
|
||||||
if (win) {
|
if (win) {
|
||||||
//Browser has allowed it to be opened
|
//Browser has allowed it to be opened
|
||||||
|
|
Loading…
Add table
Reference in a new issue