plugin installs

This commit is contained in:
Tony Volpe
2024-09-25 09:25:31 -04:00
parent 65a07c8d4d
commit cc870f301f
2953 changed files with 514886 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
export function addQueryObjectToUrl(
urlObject: URL,
queryParams: { [key: string]: any }
) {
Object.keys(queryParams).forEach(key => {
urlObject.searchParams.append(key, queryParams[key]);
});
}
export function removeQueryParamFromLocation(key: string) {
const location = new URL(window.location.href);
location.searchParams.delete(key);
window.history.replaceState(null, '', location.href);
}