Skip to content

Commit

Permalink
Merge pull request #4866 from wri/fix/FLAG-1037--hide-cookie-widget-pt2
Browse files Browse the repository at this point in the history
FLAG-1037: add setTimeout when hiding osano cookie icon
  • Loading branch information
wri7tno authored Oct 7, 2024
2 parents ad28145 + 11be31a commit d4cb0bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ export default class MyDocument extends Document {
dangerouslySetInnerHTML={{
__html: `
document.addEventListener('DOMContentLoaded', function(event) {
document.getElementsByClassName('osano-cm-window__widget osano-cm-widget osano-cm-widget--position_right')[0].style.display = 'none';
setTimeout(() => {
document.getElementsByClassName('osano-cm-window__widget osano-cm-widget osano-cm-widget--position_right')[0].style.display = 'none';
}, 100);
});
`,
}}
Expand Down

0 comments on commit d4cb0bd

Please sign in to comment.