1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Getting ready for iframe

This commit is contained in:
DanieL 2022-09-19 14:31:18 -03:00
parent cd576cd1ad
commit 86da7bb24b

View file

@ -650,14 +650,6 @@ function inMainIframe() {
return response;
}
function redirectIfIsNotInIframe() {
if (!inMainIframe() && (document.location.href === webSiteRootURL + 'site' || document.location.href === webSiteRootURL + 'site/')) {
document.location = webSiteRootURL;
return true;
}
return false;
}
function inIframe() {
if (inMainIframe()) {
return false;
@ -2832,9 +2824,6 @@ function getPleaseWait() {
}
$(document).ready(function () {
if (redirectIfIsNotInIframe()) {
return false;
}
getServerTime();
addViewFromCookie();
checkDescriptionArea();