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:
parent
cd576cd1ad
commit
86da7bb24b
1 changed files with 0 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue