Fix race condition when loading styles within the widget

This commit is contained in:
Raphael Michel
2020-04-29 11:40:25 +02:00
parent 7e80ec93d5
commit 57f5fbc131
2 changed files with 2 additions and 2 deletions

View File

@@ -6,5 +6,5 @@ var inIframe = function () {
} }
}; };
if (inIframe()) { if (inIframe()) {
document.body.classList.add('in-iframe'); document.documentElement.classList.add('in-iframe');
} }

View File

@@ -1,7 +1,7 @@
.in-iframe .page-header, .in-iframe .page-header-links { .in-iframe .page-header, .in-iframe .page-header-links {
display: none; display: none;
} }
body.in-iframe { .in-iframe body {
background: white !important; background: white !important;
} }
.in-iframe .main-box { .in-iframe .main-box {