You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ui.code component uses navigator.clipboard.writeText from the copy function, but an error will be reported in the safari browser and cannot be copied.
The text was updated successfully, but these errors were encountered:
Modern browsers often require a user-initiated action, like a click or tap, to access the clipboard. Ensure your clipboard writing code is triggered by such an event.
I managed to fix it by writing to the clipboard directly on the client without making the detour over the server. This way Safari recognizes the clipboard access as user-initiated and doesn't raise an error.
I managed to fix it by writing to the clipboard directly on the client without making the detour over the server. This way Safari recognizes the clipboard access as user-initiated and doesn't raise an error.
Could you show a code snippet? On Safari, I seem to still be getting Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. with the following code
Description
The ui.code component uses navigator.clipboard.writeText from the copy function, but an error will be reported in the safari browser and cannot be copied.The text was updated successfully, but these errors were encountered: