diff options
| author | secondl1ght <[email protected]> | 2022-07-30 20:45:19 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-07-30 20:45:19 -0600 |
| commit | 27cbd543cece74228680d74f276eca89e13b557b (patch) | |
| tree | bfec136e0ca6350897fa0e7a6126921e2f9b649b /src/lib/utils.js | |
| parent | 2bca310acc4ca22960c5902b402c2ae23d0f7755 (diff) | |
| download | coinos-ui-27cbd543cece74228680d74f276eca89e13b557b.tar.gz coinos-ui-27cbd543cece74228680d74f276eca89e13b557b.zip | |
add user public page
Diffstat (limited to 'src/lib/utils.js')
| -rw-r--r-- | src/lib/utils.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index 22c88522..7831c519 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -17,3 +17,7 @@ export const post = (url, body) => body: JSON.stringify(body), headers: { accept: 'application/json', 'content-type': 'application/json' } }).then((r) => r.json()); + +export const copy = (text) => { + navigator.clipboard.writeText(text); +}; |
