mirror of https://github.com/jiahaog/Nativefier
The API `tray.setHighlightMode(mode)` has been be removed in electron v7.0 without replacement. This causes the display of an error dialog every time an app is shown/hidden if the parameter `--tray` is used when nativefying. This is completely independent form the website you are nativefying and it happens with all the version of electron after 6.x. Source: https://www.electronjs.org/docs/api/breaking-changes#tray
This commit is contained in:
parent
b927b401b0
commit
261ee2913b
|
@ -39,14 +39,6 @@ function createTrayIcon(inpOptions, mainWindow) {
|
|||
|
||||
appIcon.on('click', onClick);
|
||||
|
||||
mainWindow.on('show', () => {
|
||||
appIcon.setHighlightMode('always');
|
||||
});
|
||||
|
||||
mainWindow.on('hide', () => {
|
||||
appIcon.setHighlightMode('never');
|
||||
});
|
||||
|
||||
if (options.counter) {
|
||||
mainWindow.on('page-title-updated', (e, title) => {
|
||||
const counterValue = getCounterValue(title);
|
||||
|
|
Loading…
Reference in New Issue