mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 15:34:59 +01:00
Fix error when breadcrumb image fails to load (#609)
This commit is contained in:
parent
224bccaf95
commit
8b16f2d0d9
@ -220,7 +220,8 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) {
|
||||
return resp.arrayBuffer();
|
||||
})
|
||||
.then((arrayBuffer) => {
|
||||
const buffer = Buffer.from(arrayBuffer!);
|
||||
if (!arrayBuffer) return;
|
||||
const buffer = Buffer.from(arrayBuffer);
|
||||
button.icon = nativeImage.createFromBuffer(buffer);
|
||||
button.label = "";
|
||||
button.backgroundColor = "";
|
||||
|
Loading…
Reference in New Issue
Block a user