chore: improve checking for API url '/' suffix (#121)
This commit is contained in:
parent
cade3df3e9
commit
311b1d7594
@ -36,8 +36,8 @@ if (apiUrlFromStorage !== null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the api url does not contain a / at the end
|
// Make sure the api url does not contain a / at the end
|
||||||
if (window.API_URL.slice(window.API_URL.length - 1, window.API_URL.length) === '/') {
|
if (window.API_URL.endsWith('/')) {
|
||||||
window.API_URL = window.API_URL.slice(0, window.API_URL.length - 1)
|
window.API_URL = window.API_URL.slice(0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// directives
|
// directives
|
||||||
|
Loading…
x
Reference in New Issue
Block a user