]> git.ardis.lu - event-hashes/commit
Fix "Copy permalink" button on Safari
authorArdis Lu <ardisglu@gmail.com>
Sun, 28 Jul 2024 05:21:25 +0000 (22:21 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 28 Jul 2024 05:21:25 +0000 (22:21 -0700)
commitf8f0eeb2995bbc072b876519fd18bf33ab974ea8
tree7474865b18a5f4489686ca3e7368b252920f250c
parent329f769299efb6c0eed324818f38bbaf5e28ae9c
Fix "Copy permalink" button on Safari

This is a workaround for: https://bugs.webkit.org/show_bug.cgi?id=222262

Safari considers the user activation to be expired after an `await`, so `writeText` no longer has permission. Workaround is to avoid `await` and pass a promise instead.
index.html
This page took 0.040553 seconds and 4 git commands to generate.