Here’s a niche gotcha with the clipboard API’s `navigator.clipboard.writeText()` method that’s unique to Safari:
If you access a function from a module within your gesture handler (e.g., click handler), you will get a permission error.
The (sadly hacky and not as robust) workaround is to set a global variable from your module instead.
Full gist:
@aral we need a whole web conf that is only weird shit like this ;)
@raymondcamden Oh, goodness no. We need to fix stuff so we don’t need that conference :)
@aral logical and sane idea there
@aral @raymondcamden The best way to get this fixed is to file a WebKit bug: https://bugs.webkit.org/enter_bug.cgi.
@tomayac
Agree, especially as #WebKit is also used in some Linux browsers.
@aral @raymondcamden