miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
5.06k stars 1.18k forks source link

Fix handle sharing and copying chat links #143

Closed miurla closed 2 months ago

miurla commented 2 months ago

This PR addresses an issue where Safari throws an Unhandled Promise Rejection: NotAllowedError when attempting to copy a link to the clipboard. This error occurs because Safari requires clipboard operations to be directly triggered by user interactions. Our previous implementation attempted to copy to the clipboard after an asynchronous server action, which Safari does not recognize as a direct user interaction.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
morphic ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2024 5:10pm