Skip to content

Commit

Permalink
fix(document): add setTimeout when hiding osano cookie icon
Browse files Browse the repository at this point in the history
  • Loading branch information
wri7tno committed Oct 7, 2024
1 parent ad28145 commit 11be31a
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 11be31a

Please sign in to comment.