mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 04:53:17 +00:00
renderer: Set the icon src to a data: URL.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
13ce24b75e
commit
d1aa5778c3
@@ -1,4 +1,5 @@
|
||||
import {clipboard} from "electron/common";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import process from "node:process";
|
||||
|
||||
@@ -362,7 +363,10 @@ export class ServerManagerView {
|
||||
this.tabs.push(
|
||||
new ServerTab({
|
||||
role: "server",
|
||||
icon: server.icon,
|
||||
icon: `data:application/octet-stream;base64,${fs.readFileSync(
|
||||
server.icon,
|
||||
"base64",
|
||||
)}`,
|
||||
name: server.alias,
|
||||
$root: this.$tabsContainer,
|
||||
onClick: this.activateLastTab.bind(this, index),
|
||||
|
||||
Reference in New Issue
Block a user