mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 13:09:31 +01:00
trim url trailing slashes
This commit is contained in:
parent
550af91030
commit
8f59c4a236
@ -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…
x
Reference in New Issue
Block a user