fix error

This commit is contained in:
janis
2024-04-30 10:46:17 +02:00
parent e082d133a1
commit 94e76ca301

View File

@@ -100,7 +100,7 @@
</div>
<!-- Detection to open pop-up to tell users to head to new website after certain amount of interactions -->
<script>
let pageViewCount = parseInt( localStorage.getItem( 'pageViewCount' ) ) ?? 0;
let pageViewCount = parseInt( localStorage.getItem( 'pageViewCount' ) ?? '0' );
if ( pageViewCount > 4 ) {
document.getElementById( 'go-to-new-page-popup' ).classList.add( 'popup-show' );
} else {