1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00

Fix trailer

This commit is contained in:
Daniel 2022-02-25 16:33:45 -03:00
parent a0d031fc2a
commit e1a2fc58b0

View file

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