Skip to content

Commit 77128cc

Browse files
committed
set radix for parseInt in docsearch bundle [skip ci]
1 parent 42a7ebc commit 77128cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/vendor/docsearch.bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
function activateSearch (docsearch, config) {
1212
appendStylesheet(config.stylesheet)
1313
var baseAlgoliaOptions = {
14-
hitsPerPage: parseInt(config.pageSize) || 20, // cannot exceed the hitsPerPage value defined on the index
14+
hitsPerPage: parseInt(config.pageSize, 10) || 20, // cannot exceed the hitsPerPage value defined on the index
1515
}
1616
var searchField = document.getElementById(config.searchFieldId || 'search')
1717
searchField.appendChild(Object.assign(document.createElement('div'), { className: 'algolia-autocomplete-results' }))

0 commit comments

Comments
 (0)