mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 07:53:58 +00:00
API url fix
This commit is contained in:
@@ -9,7 +9,7 @@ export default function resolveApi() {
|
|||||||
if (apiUrl) {
|
if (apiUrl) {
|
||||||
return apiUrl;
|
return apiUrl;
|
||||||
}
|
}
|
||||||
return window.location.href.replace(/\/*$/, '');
|
return (window.location.origin + window.location.pathname).replace(/\/*$/, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resolveApiHeaders() {
|
export function resolveApiHeaders() {
|
||||||
|
|||||||
Reference in New Issue
Block a user