Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 2248ec9

Browse files
atwalg2jasonLaster
authored andcommitted
add flow header to src/utils/clipboard.js(#5895)
1 parent 2e57a86 commit 2248ec9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/utils/clipboard.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
* Clipboard function taken from
77
* https://dxr.mozilla.org/mozilla-central/source/devtools/shared/platform/content/clipboard.js
88
*/
9-
export function copyToTheClipboard(string) {
10-
const doCopy = function(e) {
9+
10+
// @flow
11+
12+
export function copyToTheClipboard(string: string) {
13+
const doCopy = function(e: any) {
1114
e.clipboardData.setData("text/plain", string);
1215
e.preventDefault();
1316
};

0 commit comments

Comments
 (0)