diff options
| author | Mel <einebeere@gmail.com> | 2022-02-22 17:41:38 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-02-22 17:41:38 +0100 |
| commit | 3178bf5a96897981b050036623451da94c92ce17 (patch) | |
| tree | f671bfcf00c06835baaac7f69bf1f82371024f1b /assets/src/utils | |
| parent | 069ee95ddc9981d86a4ed39a2826aaf8781ea505 (diff) | |
| download | rook-3178bf5a96897981b050036623451da94c92ce17.tar.zst rook-3178bf5a96897981b050036623451da94c92ce17.zip | |
Diffstat (limited to 'assets/src/utils')
| -rw-r--r-- | assets/src/utils/copy.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/src/utils/copy.ts b/assets/src/utils/copy.ts new file mode 100644 index 0000000..ded2070 --- /dev/null +++ b/assets/src/utils/copy.ts @@ -0,0 +1,3 @@ +export default function (str: string) { + return navigator.clipboard.writeText(str); +} |
