Created
January 23, 2024 07:32
-
-
Save kulterryan/c63962249c79356d3f82fa3ca456b32d to your computer and use it in GitHub Desktop.
Elementor Timer Reset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery( document ).ready( function ( $ ) { | |
$(document).on( 'countdown_expire', function() { | |
Object.keys(localStorage) | |
.filter(key => key.endsWith('evergreen_interval')) | |
.forEach(key => localStorage | |
.removeItem((key))) | |
Object.keys(localStorage) | |
.filter(key => key.endsWith('evergreen_due_date')) | |
.forEach(key => localStorage | |
.removeItem((key))) | |
} ); | |
} ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment