mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: copy base64
This commit is contained in:
1 parent
0365656a0e
commit
09f5d4e3f7
1 file changed
+5
-1
@@ -248,7 +248,11 @@ function ComponentDisplay({
|
||||
<IconButton
|
||||
size="1"
|
||||
variant="ghost"
|
||||
onClick={() => console.log(value.value)}
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(
|
||||
btoa(String.fromCharCode(...value.value)),
|
||||
);
|
||||
}}
|
||||
>
|
||||
<DiscIcon />
|
||||
</IconButton>
|
||||
|
||||
Reference in new issue
Block a user