Skip to content

Commit

Permalink
fix: improve accessibility of overlay component
Browse files Browse the repository at this point in the history
  • Loading branch information
imantsk committed Sep 3, 2024
1 parent 784bb4b commit cc11ff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flowbite.min.js"></script>
<script src="https://cdn.tailwindcss.com?plugins=typography,aspect-ratio,container-queries"></script>
<script src="js/tconfig.js?v1.3" uncache></script>
<script src="js/main.js?v2.7" uncache></script>
<script src="js/main.js?v2.8" uncache></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
Expand Down
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (overlay && !getCookie("visited_sinteze")) {
disableScroll();
} else if (overlay) {
overlay.remove(); // Remove overlay if cookie is set
overlay.remove();
enableScroll();
}
});

0 comments on commit cc11ff0

Please sign in to comment.