mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
6155645a45
no issue - the method we used for copying text to the clipboard for older browsers has broken on some newer browsers - the more modern `navigator.clipboard.writeText` API is now universally supported by our target browsers so we're able to switch to that instead which is working across the board
4 lines
95 B
JavaScript
4 lines
95 B
JavaScript
export default function copyTextToClipboard(text) {
|
|
navigator.clipboard.writeText(text);
|
|
}
|