Remove trailing slash from Core address

This commit is contained in:
Ingo Oppermann 2022-07-01 16:48:42 +02:00
parent f23143c0ef
commit 64d532e38b
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -1,5 +1,10 @@
class API {
constructor(address) {
// Removes the / at the end
if (address.slice(-1) === '/') {
address = address.slice(0, -1);
}
this.base = '/api';
this.address = address;
this.token = '';