fix(core): update

This commit is contained in:
2022-12-31 11:21:29 +01:00
parent 470f47f8bb
commit 41b6f04db6
14 changed files with 4438 additions and 27455 deletions

View File

@@ -1,4 +1,4 @@
import * as plugins from './smartrouter.plugins';
import * as plugins from './smartrouter.plugins.js';
export class QueryParams {
constructor() {}
@@ -8,7 +8,11 @@ export class QueryParams {
return Object.fromEntries((urlSearchParams as any).entries());
}
public setQueryParam(queryKeyArg: string, queryContentArg: string, pushOrReplaceArg: 'push' | 'replace' = 'replace') {
public setQueryParam(
queryKeyArg: string,
queryContentArg: string,
pushOrReplaceArg: 'push' | 'replace' = 'replace'
) {
var queryParams = new URLSearchParams(window.location.search);
queryParams.set(queryKeyArg, queryContentArg);
pushOrReplaceArg === 'push'