mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 21:59:50 +01:00
trim url trailing slashes
This commit is contained in:
@@ -5,7 +5,7 @@ export function formatApiCall(url, args) {
|
|||||||
return args[key];
|
return args[key];
|
||||||
};
|
};
|
||||||
|
|
||||||
return url.replace(find, replace);
|
return url.replace(/\/+$/, "").replace(find, replace);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getURLSearchParams(widget, endpoint) {
|
function getURLSearchParams(widget, endpoint) {
|
||||||
|
|||||||
Reference in New Issue
Block a user