Skip to content

Commit

Permalink
fix highlightKeywords() split for undefined issue (#7304)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-pegao authored Apr 14, 2021
1 parent a71abf9 commit 1784c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docfx.website.themes/default/styles/docfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ $(function () {
// Highlight the searching keywords
function highlightKeywords() {
var q = url('?q');
if (q !== null) {
if (q) {
var keywords = q.split("%20");
keywords.forEach(function (keyword) {
if (keyword !== "") {
Expand Down

0 comments on commit 1784c40

Please sign in to comment.