shorten period to popup further

This commit is contained in:
janis
2024-04-30 10:50:54 +02:00
parent 326e4d1b9b
commit 24850d1ca5

View File

@@ -101,10 +101,10 @@
<!-- 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' );
pageViewCount += 1;
if ( pageViewCount > 2 ) {
document.getElementById( 'go-to-new-page-popup' ).classList.add( 'popup-show' );
} else {
pageViewCount += 1;
localStorage.setItem( 'pageViewCount', pageViewCount );
}