Skip to content

Commit 6aae97b

Browse files
committed
Update tray tooltip based on document.title
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 8927afc commit 6aae97b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

electron_app/src/tray.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,8 @@ exports.create = function (win, config) {
6666
trayIcon.setImage(img);
6767
} catch (e) {console.error(e);}
6868
});
69+
70+
win.webContents.on('page-title-updated', function(ev, title) {
71+
trayIcon.setToolTip(title);
72+
});
6973
};

0 commit comments

Comments
 (0)