diff --git a/web-plugin/index.js b/web-plugin/index.js index cdee7be..5aedf7e 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -147,6 +147,11 @@ function addButton() { console.log(prompt); + // TODO trim the ending / from endpoint is there is + if (endpoint.endsWith("/")) { + endpoint = endpoint.slice(0, -1); + } + const apiRoute = endpoint + "/api/upload" // const userId = apiKey try {