Remove trailing slash from Core address
This commit is contained in:
parent
f23143c0ef
commit
64d532e38b
@ -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 = '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user