mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-18 05:01:12 +08:00
fix: Cannot read property 'startsWith' of undefined (#1358)
* fix: Cannot read property 'startsWith' of undefined * Update search.js * update * Update search.js
This commit is contained in:
@@ -203,7 +203,7 @@ export function init(config, vm) {
|
||||
let namespaceSuffix = '';
|
||||
|
||||
// only in auto mode
|
||||
if (isAuto && config.pathNamespaces) {
|
||||
if (paths.length && isAuto && config.pathNamespaces) {
|
||||
const path = paths[0];
|
||||
|
||||
if (Array.isArray(config.pathNamespaces)) {
|
||||
|
||||
Reference in New Issue
Block a user