Skip to content

Commit

Permalink
Merge pull request #779 from reportportal/develop
Browse files Browse the repository at this point in the history
Release. Temporary disable Cookie pro scripts
  • Loading branch information
AmsterGet authored Sep 30, 2024
2 parents 280ebfe + 2a414db commit 0f801c6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @AmsterGet @Vadim73i @pressayuliya
* @AmsterGet @pressayuliya
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 0f801c6

Please sign in to comment.