Update tray tooltip based on document.title
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -66,4 +66,8 @@ exports.create = function (win, config) {
|
||||
trayIcon.setImage(img);
|
||||
} catch (e) {console.error(e);}
|
||||
});
|
||||
|
||||
win.webContents.on('page-title-updated', function(ev, title) {
|
||||
trayIcon.setToolTip(title);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user