plugin updates

This commit is contained in:
Tony Volpe
2024-06-17 15:33:26 -04:00
parent 3751a5a1a6
commit e4e274a9a7
2674 changed files with 0 additions and 507851 deletions

View File

@@ -1,14 +0,0 @@
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);
}