bugfix
This commit is contained in:
parent
b74dc804d6
commit
632cce4dbb
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
|
||||||
|
|
||||||
// check if the link is for odysee.com
|
// check if the link is for odysee.com
|
||||||
function isAnOdyseeLink(urlString) {
|
function isAnOdyseeLink(urlString) {
|
||||||
return urlString.indexOf('https://odysee.com') !== -1 || urlString.indexOf('http://odysee.com') !== -1;
|
return urlString && (urlString.indexOf('https://odysee.com') !== -1 || urlString.indexOf('http://odysee.com') !== -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if it's an internal link we won't open a new tab
|
// if it's an internal link we won't open a new tab
|
||||||
|
|
Loading…
Reference in a new issue