Fix JS search scripts path

This commit is contained in:
Guillaume Gomez 2025-08-20 12:15:33 +02:00
parent 22a86f8280
commit e1045c219b

View file

@ -5252,7 +5252,7 @@ if (typeof window !== "undefined") {
},
loadTreeByHash: hashHex => {
const script = document.createElement("script");
script.src = `${ROOT_PATH}/search.index/${hashHex}.js`;
script.src = `${ROOT_PATH}search.index/${hashHex}.js`;
script.onerror = e => {
if (databaseCallbacks) {
databaseCallbacks.err_rn_(hashHex, e);
@ -5262,7 +5262,7 @@ if (typeof window !== "undefined") {
},
loadDataByNameAndHash: (name, hashHex) => {
const script = document.createElement("script");
script.src = `${ROOT_PATH}/search.index/${name}/${hashHex}.js`;
script.src = `${ROOT_PATH}search.index/${name}/${hashHex}.js`;
script.onerror = e => {
if (databaseCallbacks) {
databaseCallbacks.err_rd_(hashHex, e);