This commit is contained in:
Jan Prochazka 2024-09-03 13:46:43 +02:00
parent eb56b6eab8
commit 7c04dc00b1
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -33,4 +33,4 @@ packages/api/src/nativeModulesContent.js
packages/api/src/packagedPluginsContent.js
.VSCodeCounter
pacgaes/web/public/*.html
packages/web/public/*.html

View File

@ -10,7 +10,7 @@ export default function resolveApi() {
if (apiUrl) {
return apiUrl;
}
return (window.location.origin + window.location.pathname).replace(/\/*$/, '');
return (window.location.origin + window.location.pathname).replace(/\/[a-zA-Z-]+\.html$/, '').replace(/\/*$/, '');
}
export function resolveApiHeaders() {