context-path 처리 수정
This commit is contained in:
@@ -15,9 +15,14 @@ class APIClient {
|
|||||||
this.variables = {};
|
this.variables = {};
|
||||||
this.abortController = null;
|
this.abortController = null;
|
||||||
this.contextPath = document.querySelector('meta[name="context-path"]').getAttribute('content');
|
this.contextPath = document.querySelector('meta[name="context-path"]').getAttribute('content');
|
||||||
|
|
||||||
if (!this.contextPath) {
|
if (!this.contextPath) {
|
||||||
this.contextPath = '/';
|
this.contextPath = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.contextPath.endsWith('/')) {
|
||||||
|
this.contextPath += '/';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getClientUrl() {
|
getClientUrl() {
|
||||||
|
|||||||
Reference in New Issue
Block a user