Commit 18e061bc authored by wim-vantomme's avatar wim-vantomme

Fixed Unhandled Promise rejection handling in fileUtils.js.

parent a842c62e
......@@ -1695,8 +1695,6 @@ sendForm.addEventListener('submit', (e) => {
return crypt.pemPublicToCrypto(values[1].data.publicKey)
}).then((publicKeyOther) => {
crypt.encryptKey(publicKeyOther, secretSessionKey).then((encryptedSessionKey) => {
console.log('sessionkey', encryptedSessionKey)
console.log('encryptedMessage', encryptedMessage)
const data = {
sessionKey: encryptedSessionKey,
message: encryptedMessage
......
......@@ -11,7 +11,7 @@ function writeFile (fileName, value, pathName) {
}
resolve()
})
})
}).catch((err) => console.log(err))
})
}
......
......@@ -11,7 +11,7 @@ function writeFile (fileName, value, pathName) {
}
resolve()
})
})
}).catch((err) => console.log(err))
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment