mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Update tray tooltip based on document.title
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8927afca03
commit
6aae97b812
@ -66,4 +66,8 @@ exports.create = function (win, config) {
|
|||||||
trayIcon.setImage(img);
|
trayIcon.setImage(img);
|
||||||
} catch (e) {console.error(e);}
|
} catch (e) {console.error(e);}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
win.webContents.on('page-title-updated', function(ev, title) {
|
||||||
|
trayIcon.setToolTip(title);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user