Display search query and results in the console

This commit is contained in:
James Nylen 2020-05-04 14:15:27 +00:00
parent 4460a4e34a
commit 68a879cad8

View file

@ -64,6 +64,9 @@ function setupSearch() {
searchResults.forEach( function( r ) {
searchMatches[ +r.ref ] = r;
} );
if ( window.console && console.log ) {
console.log( 'search', { value: searchValue, results: searchResults } );
}
searchData.textData.forEach( function( company, index ) {
var match = searchMatches[ index ];
var row = document.getElementById( 'company-row-' + index );