mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
workbox
This commit is contained in:
@@ -19,9 +19,11 @@ const SetupKey: React.FC = () => {
|
||||
const [email, setEmail] = useState('');
|
||||
|
||||
const downloadPublicKey = useCallback(() => {
|
||||
const publicKeyBlob = new Blob([publicKey!]);
|
||||
const publicKeyBlob = new Blob([publicKey + ''], {
|
||||
type: 'text/text',
|
||||
});
|
||||
downloadLink('public-key.asc', publicKeyBlob);
|
||||
}, []);
|
||||
}, [publicKey]);
|
||||
|
||||
const setupKey = useCallback(() => {
|
||||
createKey(name, email);
|
||||
|
||||
Reference in New Issue
Block a user