From 1784c4041dbfb562b6a7d6a9572a643564a87f4f Mon Sep 17 00:00:00 2001 From: v-pegao Date: Wed, 14 Apr 2021 10:54:36 +0800 Subject: [PATCH] fix highlightKeywords() split for undefined issue (#7304) --- src/docfx.website.themes/default/styles/docfx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docfx.website.themes/default/styles/docfx.js b/src/docfx.website.themes/default/styles/docfx.js index c966416b0d9..3bc1b677405 100644 --- a/src/docfx.website.themes/default/styles/docfx.js +++ b/src/docfx.website.themes/default/styles/docfx.js @@ -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 !== "") {