Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
steveblue committed Oct 12, 2024
1 parent 4ccb39d commit a353a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Router {
.replace(/"/g, '\\"')
.replace(/&/g, '","')
.replace(/=/g, '":"') +
'"}'
'"}',
);
}

Expand All @@ -120,7 +120,7 @@ class Router {
resolve(route: Route) {
const locationParams = this.decodeQuery();
const component: RouteComponent = document.createElement(
route.component as string
route.component as string,
);

if (Object.keys(locationParams).length) {
Expand All @@ -129,7 +129,7 @@ class Router {
window.history.replaceState(
{},
'',
`${location.pathname}?${this.parseQuery(route)}`
`${location.pathname}?${this.parseQuery(route)}`,
);
}

Expand Down

0 comments on commit a353a5d

Please sign in to comment.