mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-09 22:05:10 +00:00
Fix error when breadcrumb image fails to load (#609)
This commit is contained in:
parent
224bccaf95
commit
8b16f2d0d9
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) {
|
||||||
return resp.arrayBuffer();
|
return resp.arrayBuffer();
|
||||||
})
|
})
|
||||||
.then((arrayBuffer) => {
|
.then((arrayBuffer) => {
|
||||||
const buffer = Buffer.from(arrayBuffer!);
|
if (!arrayBuffer) return;
|
||||||
|
const buffer = Buffer.from(arrayBuffer);
|
||||||
button.icon = nativeImage.createFromBuffer(buffer);
|
button.icon = nativeImage.createFromBuffer(buffer);
|
||||||
button.label = "";
|
button.label = "";
|
||||||
button.backgroundColor = "";
|
button.backgroundColor = "";
|
||||||
|
|
Loading…
Reference in a new issue