Update tray tooltip based on document.title

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-13 12:39:55 +01:00
parent 8927afca03
commit 6aae97b812

View File

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