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 | 4552df3091e2a1c5f179eec1e2a4b73deccc72a9 (patch) | |
| tree | f1b3e6447cc972e33378dbd0470e87a5925d26dd /src/lib | |
| parent | a172e63263654dbb8096859be16041d301afec77 (diff) | |
| download | coinos-ui-4552df3091e2a1c5f179eec1e2a4b73deccc72a9.tar.gz coinos-ui-4552df3091e2a1c5f179eec1e2a4b73deccc72a9.zip | |
add user public page
Diffstat (limited to 'src/lib')
| -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); +}; |
