new release #190
@ -416,8 +416,11 @@ export const SignPage = () => {
|
||||
)
|
||||
|
||||
if (arrayBuffer) {
|
||||
files[fileName] = await convertToPdfFile(arrayBuffer, fileName)
|
||||
|
||||
try {
|
||||
files[fileName] = await convertToPdfFile(arrayBuffer, fileName)
|
||||
} catch (error) {
|
||||
console.error('Not a .pdf file:', error)
|
||||
}
|
||||
const hash = await getHash(arrayBuffer)
|
||||
if (hash) {
|
||||
fileHashes[fileName] = hash
|
||||
|
@ -246,10 +246,14 @@ export const VerifyPage = () => {
|
||||
)
|
||||
|
||||
if (arrayBuffer) {
|
||||
files[fileName] = await convertToPdfFile(
|
||||
arrayBuffer,
|
||||
fileName!
|
||||
)
|
||||
try {
|
||||
files[fileName] = await convertToPdfFile(
|
||||
arrayBuffer,
|
||||
fileName!
|
||||
)
|
||||
} catch (error) {
|
||||
console.error('Not a .pdf file:', error)
|
||||
}
|
||||
const hash = await getHash(arrayBuffer)
|
||||
|
||||
if (hash) {
|
||||
|
Loading…
Reference in New Issue
Block a user