Bug Description
Description
The current Discord fallback share flow emits social_share_success and triggers the onShare callback immediately after calling copyLink() and window.open().
If clipboard access fails or the popup is blocked by the browser, the library can still report a successful share even though the fallback action did not complete successfully.
Expected Behavior
Only emit social_share_success and invoke onShare after confirming that the fallback action has completed successfully.
Possible Solution
- Return a success/failure result from
copyLink().
- Verify that
window.open() succeeds.
- Emit the success event only when the fallback action completes successfully.
I'd be happy to work on this Issue
Steps to Reproduce
No response
Logs and Screenshots
No response
Environment Details
No response
Impact
Critical - Application is unusable
Code of Conduct
Bug Description
Description
The current Discord fallback share flow emits
social_share_successand triggers theonSharecallback immediately after callingcopyLink()andwindow.open().If clipboard access fails or the popup is blocked by the browser, the library can still report a successful share even though the fallback action did not complete successfully.
Expected Behavior
Only emit
social_share_successand invokeonShareafter confirming that the fallback action has completed successfully.Possible Solution
copyLink().window.open()succeeds.I'd be happy to work on this Issue
Steps to Reproduce
No response
Logs and Screenshots
No response
Environment Details
No response
Impact
Critical - Application is unusable
Code of Conduct