Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/components/popup/intro/intro.less
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
.flexColumn {
flex-direction: column;
@media (max-width: 480px) {
flex-direction: row;
}
@media (min-width: 481px) {
flex-direction: column;
}
}


div.intro {
align-items: center;
padding: 0 4em;
max-height: 100%;

.top {
max-height: 425px;
margin-bottom: 75px;
overflow: auto;

@media (max-width: 480px) {
max-height: calc(100vh - 75px);
}
@media (min-width: 481px) {
max-height: 425px;
}

.logo {
display: block;
margin: 20px auto 10px auto;
Expand All @@ -27,6 +39,7 @@ div.intro {
.description {
margin: 2em 0;
overflow: auto;
max-height: 150px;
text-align: center;
}
.options {
Expand Down
15 changes: 15 additions & 0 deletions src/lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ export function init(configUpdates) {
cmp.gdprAppliesLanguage = response.language;
cmp.gdprAppliesLocation = response.location;
}).then((response) => {
function addLocatorFrame() {
if (!window.frames['__cmpLocator']) {
if (document.body) {
var frame = document.createElement('iframe');
frame.style.display = 'none';
frame.name = '__cmpLocator';
document.body.appendChild(frame);
}
else {
setTimeout(addLocatorFrame, 5);
}
}
}

addLocatorFrame();
store.updateIsEU(response.applies);

// Render the UI
Expand Down