Skip to content

Commit

Permalink
Merge pull request #4862 from wri/fix/FLAG-1037--hide-cookie-widget
Browse files Browse the repository at this point in the history
FLAG-1037: fix the way osano cookie widget is hidden
  • Loading branch information
wri7tno authored Oct 2, 2024
2 parents 51d3a81 + 5373926 commit ad28145
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ export default class MyDocument extends Document {
<Main />
</main>
{isOsanoEnabled && (
<style
<script
dangerouslySetInnerHTML={{
__html: `
.osano-cm-widget {
display: none;
}
document.addEventListener('DOMContentLoaded', function(event) {
document.getElementsByClassName('osano-cm-window__widget osano-cm-widget osano-cm-widget--position_right')[0].style.display = 'none';
});
`,
}}
/>
Expand Down

0 comments on commit ad28145

Please sign in to comment.