We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9f53b7 commit d1631beCopy full SHA for d1631be
examples/demo/src/utils/copy-to-clipboard.js
@@ -1,3 +1,5 @@
1
+/*global navigator */
2
+
3
export const copyToClipboard = (str) => {
4
return navigator.clipboard.writeText(str)
5
}
0 commit comments