This commit is contained in:
Michael Telatynski 2023-05-24 12:01:56 +01:00
parent 344d473e9b
commit 84ffc7e2e6
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D

View file

@ -62,7 +62,7 @@ export function create(config: IConfig): void {
let lastFavicon: string | null = null;
global.mainWindow?.webContents.on("page-favicon-updated", async function (ev, favicons) {
if (!favicons || favicons.length <= 0 || !favicons[0].startsWith("data:")) {
if (!favicons?.[0]?.startsWith("data:")) {
if (lastFavicon !== null) {
global.mainWindow?.setIcon(defaultIcon);
trayIcon?.setImage(defaultIcon);