issue-38 #62
@ -206,7 +206,10 @@ export const SignPage = () => {
|
|||||||
if (!selectedFile || !encryptionKey) return
|
if (!selectedFile || !encryptionKey) return
|
||||||
|
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
const arrayBuffer = await decrypt(selectedFile, encryptionKey)
|
const arrayBuffer = await decrypt(
|
||||||
|
selectedFile,
|
||||||
|
decodeURIComponent(encryptionKey)
|
||||||
|
)
|
||||||
|
|
||||||
if (!arrayBuffer) return
|
if (!arrayBuffer) return
|
||||||
|
|
||||||
@ -482,11 +485,6 @@ export const SignPage = () => {
|
|||||||
placeholder="Select file"
|
placeholder="Select file"
|
||||||
value={selectedFile}
|
value={selectedFile}
|
||||||
onChange={(value) => setSelectedFile(value)}
|
onChange={(value) => setSelectedFile(value)}
|
||||||
InputProps={{
|
|
||||||
inputProps: {
|
|
||||||
accept: '.zip'
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{selectedFile && (
|
{selectedFile && (
|
||||||
|
Loading…
Reference in New Issue
Block a user