Skip to content

Commit

Permalink
add buffered register calls
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Jul 23, 2024
1 parent 2f98aa4 commit 512236e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ async function registerPlugins(
for (const b of bufferedRegisterCalls) {
await analytics
.register(...(b.args as Plugin[]))
.then((ctx) => b.resolve(ctx as any))
.then((ctx) => b.resolve(Promise.resolve(ctx)))
.catch((err) => b.reject(err))
}
const ctx = await analytics.register(...toRegister)
Expand Down

0 comments on commit 512236e

Please sign in to comment.