2020-07-29 22:48:49 +02:00
|
|
|
runAfterLoad(() => {
|
|
|
|
displayNotificationsInTitle();
|
|
|
|
}, ".*");
|
|
|
|
|
|
|
|
function displayNotificationsInTitle(){
|
2020-07-29 23:09:13 +02:00
|
|
|
let menu = document.getElementById('materialize-menu-dropdown');
|
|
|
|
let menuDropdowns = Array.from(menu.querySelectorAll('ul.dropdown')).slice(-1)[0];
|
|
|
|
let notificationText = menuDropdowns.innerText.split(" ")[3];
|
2020-08-01 02:36:40 +02:00
|
|
|
document.title = notificationText.split(" ")[1] + ' ' + document.title;
|
2020-07-29 22:48:49 +02:00
|
|
|
}
|