mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Fix trailer
This commit is contained in:
parent
a0d031fc2a
commit
e1a2fc58b0
1 changed files with 1 additions and 1 deletions
|
@ -2291,7 +2291,7 @@ function isSameDomain(url) {
|
|||
var hrefURL, pageURL;
|
||||
hrefURL = new URL(url);
|
||||
pageURL = new URL(window.location);
|
||||
if (!(url.startsWith("/") || hrefURL.host === pageURL.host)) {
|
||||
if (url.startsWith("/") || hrefURL.host === pageURL.host) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue