Skip to content

Commit

Permalink
Loading cb.dev file only when dev is active in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
felixaschultz committed Sep 29, 2023
1 parent dc83585 commit 46bc4d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gdpr.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,7 @@ function isValidCCPALink() {
const intastellarCreateBanner = document.createElement("script");
intastellarCreateBanner.async = true;
intastellarCreateBanner.src = intastellarCookieBannerRootDomain + "/cb.js";
if(window.location.host.indexOf("localhost") > -1 || window.location.host.indexOf("127.0.0.1") > -1){
if(window.INTA.settings.dev){
intastellarCreateBanner.src = "../../cb.dev.js";
}

Expand Down
2 changes: 1 addition & 1 deletion gdpr.js

Large diffs are not rendered by default.

0 comments on commit 46bc4d1

Please sign in to comment.