File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11---
22import { Image } from " astro:assets" ;
33import PrivacyChoicesImage from " ~/assets/privacyoptions.svg" ;
4+
45const isProduction = import .meta .env .PROD ;
56
67const uuid = isProduction
78 ? " b1e05d49-f072-4bae-9116-bdb78af15448"
8- : " b1e05d49-f072-4bae-9116-bdb78af15448" ;
9+ : " b1e05d49-f072-4bae-9116-bdb78af15448-test " ;
910---
1011
1112<script
1213 src =" https://ot.www.cloudflare.com/public/vendor/onetrust/scripttemplates/otSDKStub.js"
1314 type =" text/javascript"
1415 charset =" UTF-8"
15- data-domain-script =" b1e05d49-f072-4bae-9116-bdb78af15448 "
16+ data-domain-script ={ uuid }
1617 is:inline ></script >
1718<script type =" text/javascript" is:inline >
1819 // eslint-disable-next-line @typescript-eslint/no-unused-vars
1920 function OptanonWrapper() {}
2021</script >
2122<!-- OneTrust Cookies Settings button start -->
22- <Image src ={ PrivacyChoicesImage } alt =" privacy options" />
23- <button id =" ot-sdk-btn" class =" ot-sdk-show-settings" > Cookie Settings</button >
23+ <div class =" inline-flex items-center gap-2" >
24+ <Image src ={ PrivacyChoicesImage } alt =" privacy options" height =" 12" />
25+ <button id =" ot-sdk-btn" class =" ot-sdk-show-settings" >Cookie Settings</button >
26+ </div >
2427<!-- OneTrust Cookies Settings button end -->
2528
2629<style >
Original file line number Diff line number Diff line change 130130 ))
131131 }
132132 {
133- (
133+ isProduction && (
134134 <li >
135135 <OneTrust />
136136 </li >
You can’t perform that action at this time.
0 commit comments