Add a temporary fix for Tray hiding

This commit is contained in:
smartfridge 2021-05-05 13:35:47 +02:00
parent 4a1c39559a
commit c38fb34d07

10
main.js
View file

@ -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
}
});
}