Fix #20351 : top navbar no longer hiden in extarnal site

This commit is contained in:
lmarcouiller
2022-03-14 16:11:34 +01:00
parent 10bfb76ae9
commit 1a20afe29b

View File

@@ -1138,7 +1138,7 @@ $(document).ready(function() {
// Force to hide menus when page is inside an iFrame
$(document).ready(function() {
if (window.location !== window.parent.location ) {
if (window.location.pathname.indexOf("externalsite/frametop.php") == -1 &&window.location !== window.parent.location ) {
console.log("Page is detected to be into an iframe, we hide by CSS the menus");
// The page is in an iframe
jQuery(".side-nav-vert, .side-nav, .websitebar").hide();