Skip to content

Commit

Permalink
Temporary remove cookie pro scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AmsterGet authored Sep 30, 2024
1 parent cb73284 commit 2a414db
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions plugins/plugin-cookie-pro/index.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
export default function pluginCookiePro() {
return {
name: 'plugin-cookie-pro',
injectHtmlTags() {
return {
headTags: [
{
tagName: 'script',
attributes: {
src: 'https://cookie-cdn.cookiepro.com/consent/77055ecd-ec2c-461a-bf1c-3e84d715e668/OtAutoBlock.js',
defer: true,
},
},
{
tagName: 'script',
attributes: {
src: 'https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js',
defer: true,
charset: 'UTF-8',
'data-domain-script': '77055ecd-ec2c-461a-bf1c-3e84d715e668',
},
},
{
tagName: 'script',
innerHTML: `function OptanonWrapper() { }`,
},
],
};
},
getClientModules() {
return ['./index.css'];
},
// Temporary disable until the issue with content interactivity fixed
// injectHtmlTags() {
// return {
// headTags: [
// {
// tagName: 'script',
// attributes: {
// src: 'https://cookie-cdn.cookiepro.com/consent/77055ecd-ec2c-461a-bf1c-3e84d715e668/OtAutoBlock.js',
// defer: true,
// },
// },
// {
// tagName: 'script',
// attributes: {
// src: 'https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js',
// defer: true,
// charset: 'UTF-8',
// 'data-domain-script': '77055ecd-ec2c-461a-bf1c-3e84d715e668',
// },
// },
// {
// tagName: 'script',
// innerHTML: `function OptanonWrapper() { }`,
// },
// ],
// };
// },
// getClientModules() {
// return ['./index.css'];
// },
};
}

0 comments on commit 2a414db

Please sign in to comment.