mirror of
https://github.com/element-hq/element-desktop.git
synced 2026-01-06 06:28:46 -05:00
more lint
This commit is contained in:
@@ -392,10 +392,11 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
||||
try {
|
||||
const randomArray = await new Promise((resolve, reject) => {
|
||||
crypto.randomBytes(32, (err, buf) => {
|
||||
if (err)
|
||||
if (err) {
|
||||
reject(err);
|
||||
else
|
||||
} else {
|
||||
resolve(buf);
|
||||
}
|
||||
});
|
||||
});
|
||||
const pickleKey = randomArray.toString("base64").replace(/=+$/g, '');
|
||||
|
||||
Reference in New Issue
Block a user