Skip to content

Commit

Permalink
Merge pull request #74 from felixaschultz:development
Browse files Browse the repository at this point in the history
Loading banner async
  • Loading branch information
felixaschultz authored Sep 28, 2023
2 parents f0185ca + fd6d1b4 commit 49d7ba7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 724 deletions.
7 changes: 2 additions & 5 deletions cb.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copy 2022-2023 Intastellar Solutions, International
*
*/
(function createCookieSettings() {
(function() {
let message = "";
let cookieBtn = "";
const banner = document.createElement("inta-consents-settings-btn");
Expand Down Expand Up @@ -705,10 +705,7 @@
intaconsents.appendChild(banner);
intaconsents.appendChild(moreSettings);

window.addEventListener("DOMContentLoaded", function () {
document.body.appendChild(intaconsents);
})

document.body.appendChild(intaconsents);

if(document.querySelector(".intastellarCCPAContainer") != null){
document.querySelector(".intastellarCCPAContainer").addEventListener("click", function () {
Expand Down
2 changes: 1 addition & 1 deletion cb.js

Large diffs are not rendered by default.

Loading

0 comments on commit 49d7ba7

Please sign in to comment.