Skip to content

Conversation

@dregad
Copy link

@dregad dregad commented Dec 24, 2023

navigator.clipboard.write() can't be used in async context in Safari.

Using a ClipboardItem object to handle the passphrase entry and cipher decryption as a workaround

This does not properly handle

  • empty passphrase / cancelled dialog
  • invalid passphrase (NotAllowedError is triggered)

This is NOT TESTED on Firefox/Chrome.

Fixes #2

navigator.clipboard.write() can't be used in async context in Safari.

Using a ClipboardItem object to handle the passphrase entry and cipher
decryption as a workaround

This does not properly handle
- empty passphrase / cancelled dialog
- invalid passphrase (NotAllowedError is triggered)

This is NOT TESTED on Firefox/Chrome.

Fixes cosmocode#2
@dregad dregad mentioned this pull request Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clipboard access failed

1 participant