Created
April 13, 2022 09:53
-
-
Save digamber89/a7995909b57640adf6171a0c830fda1b to your computer and use it in GitHub Desktop.
Typesense - Analytics Middleware Hook
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
(function($){ | |
document.addEventListener('tsfwc_search_state_changed', function (e) { | |
console.log('event',e.detail); | |
}) | |
//jquery | |
$(document).on('click','.hit-content a',function(){ | |
console.log(window.tsfwcSearchState); | |
}) | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment