Skip to content

Commit 5a0f508

Browse files
author
rakeshAlgo
committed
remove console errors
1 parent 089fc4e commit 5a0f508

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/js/08-contributor-bot.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
'use strict'
33
var showData = false
44
var contributors
5+
if (document.getElementById('contributorList')) {
56
var contributorList = document.getElementById('contributorList')
67
var commitdateTag = document.getElementById('commitdate')
78
var otherContributor = document.getElementById('otherContributor')
@@ -82,4 +83,5 @@
8283
.catch(function (err) {
8384
console.log(err, 13)
8485
})
86+
}
8587
})()

src/js/vendor/docsearch.bundle.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
algoliaOptions: { hitsPerPage: 25 },
1717
debug: false,
1818
})
19-
document.querySelector('button.search').addEventListener('click', function (e) {
20-
if (document.querySelector('.navbar-start').classList.toggle('reveal-search-input')) {
21-
ds.autocomplete.autocomplete.setVal('')
22-
ds.input.focus()
23-
}
24-
})
19+
ds.input.focus()
20+
// document.querySelector('button.search').addEventListener('click', function (e) {
21+
// if (document.querySelector('.navbar-start').classList.toggle('reveal-search-input')) {
22+
// ds.autocomplete.autocomplete.setVal('')
23+
// ds.input.focus()
24+
// }
25+
// })
2526
})
2627
})()

0 commit comments

Comments
 (0)