fix(in-app-help): error in prod

This commit is contained in:
Elian Doran 2025-05-20 19:16:32 +03:00
parent ccb7dc557c
commit 303819605a
No known key found for this signature in database

View File

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