forked from CGM_Public/pretix_original
Fix race condition when loading styles within the widget
This commit is contained in:
@@ -6,5 +6,5 @@ var inIframe = function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (inIframe()) {
|
if (inIframe()) {
|
||||||
document.body.classList.add('in-iframe');
|
document.documentElement.classList.add('in-iframe');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user