fix(dx/client): doc notes not working

This commit is contained in:
Elian Doran 2025-09-03 12:00:06 +03:00
parent f9e725bcf8
commit cb6d87302d
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,6 @@ function getUrl(docNameValue: string, language: string) {
// Cannot have spaces in the URL due to how JQuery.load works.
docNameValue = docNameValue.replaceAll(" ", "%20");
const basePath = window.glob.isDev ? new URL(window.glob.assetPath).pathname : window.glob.assetPath;
const basePath = window.glob.isDev ? window.glob.assetPath + "/.." : window.glob.assetPath;
return `${basePath}/doc_notes/${language}/${docNameValue}.html`;
}

View File

@ -16,8 +16,10 @@
"server:start-prod": "pnpm run --filter server start-prod",
"desktop:start": "pnpm run --filter desktop dev",
"desktop:build": "pnpm run --filter desktop build",
"desktop:start-prod": "pnpm run --filter desktop start-prod",
"electron:build": "pnpm desktop:build",
"electron:start": "pnpm desktop:start",
"electron:start-prod": "pnpm desktop:start-prod",
"chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
"chore:generate-openapi": "tsx ./scripts/generate-openapi.ts",
"chore:update-build-info": "tsx ./scripts/update-build-info.ts",