From c38fb34d075e0769128e0b7c0c3137288aa99fe3 Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Wed, 5 May 2021 13:35:47 +0200 Subject: [PATCH] Add a temporary fix for Tray hiding --- main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 730d69a..30facaf 100644 --- a/main.js +++ b/main.js @@ -61,8 +61,14 @@ function createWindow() { mainWindow.on("show", function () { - //gives some error todo - appIcon.setHighlightMode("always"); + //temporary fix + try { + appIcon(); + } catch (error) { + console.error(error); + // expected output: TypeError: appIcon is not a function + } + }); }