Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: async duration to allow ready event subscriptions #3762

Merged
merged 2 commits into from
Jun 23, 2024
Merged

Conversation

katspaugh
Copy link
Owner

Short description

Resolves #3744

Implementation details

When both peaks and duration were passes as options, onReady subscriptions weren't firing because the load was happening synchronously. With this PR, duration is always a promise.

Copy link

cloudflare-pages bot commented Jun 23, 2024

Deploying wavesurfer-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: 054f148
Status: ✅  Deploy successful!
Preview URL: https://624578c3.wavesurfer-js.pages.dev
Branch Preview URL: https://async-duration.wavesurfer-js.pages.dev

View logs

@katspaugh katspaugh merged commit fb027ff into main Jun 23, 2024
4 checks passed
@katspaugh katspaugh deleted the async-duration branch June 23, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant