mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
trim url trailing slashes
This commit is contained in:
parent
550af91030
commit
8f59c4a236
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ export function formatApiCall(url, args) {
|
|||
return args[key];
|
||||
};
|
||||
|
||||
return url.replace(find, replace);
|
||||
return url.replace(/\/+$/, "").replace(find, replace);
|
||||
}
|
||||
|
||||
function getURLSearchParams(widget, endpoint) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue