fix: Build log

This commit is contained in:
Andras Bacsai
2022-04-03 23:34:17 +02:00
parent 03e7af12be
commit 8232a7468b
3 changed files with 9 additions and 6 deletions

View File

@@ -37,3 +37,9 @@ export function dashify(str: string, options?: any): string {
.replace(/-{2,}/g, (m) => (options && options.condense ? '-' : m))
.toLowerCase();
}
export function changeQueryParams(buildId) {
const queryParams = new URLSearchParams(window.location.search);
queryParams.set('buildId', buildId);
return history.pushState(null, null, '?' + queryParams.toString());
}