Skip to content

Commit

Permalink
fix(readme): middlewares instantiation was wrong in the main example
Browse files Browse the repository at this point in the history
  • Loading branch information
sneko committed Nov 4, 2024
1 parent 40f631a commit 88b3214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ import { YourFirstMiddleware } from './your-own-middlewares';

// Declare which middlewares you want to chain
const composition = new MiddlewareComposition(
new YourFirstMiddleware(),
new SetUtmParametersMiddleware({
YourFirstMiddleware(),
SetUtmParametersMiddleware({
params: {
utm_source: 'your-website',
utm_medium: 'referral',
Expand Down

0 comments on commit 88b3214

Please sign in to comment.