fix: fixed bug where search path was null
This commit is contained in:
parent
51ccaa3dda
commit
324e609079
|
@ -6,6 +6,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
let isXml = true;
|
let isXml = true;
|
||||||
// Search DB path
|
// Search DB path
|
||||||
let searchPath = CONFIG.path;
|
let searchPath = CONFIG.path;
|
||||||
|
if (!searchPath) return false;
|
||||||
if (searchPath.length === 0) {
|
if (searchPath.length === 0) {
|
||||||
searchPath = 'search.xml';
|
searchPath = 'search.xml';
|
||||||
} else if (searchPath.endsWith('json')) {
|
} else if (searchPath.endsWith('json')) {
|
||||||
|
|
Loading…
Reference in New Issue