only alert owa if number of mails increases
This commit is contained in:
parent
d82d28452c
commit
cf0a8ab999
1 changed files with 2 additions and 2 deletions
4
owa.js
4
owa.js
|
|
@ -5,7 +5,7 @@
|
|||
// @updateURL https://gitea.bmsch.de/balthasar/Scripts/raw/branch/master/owa.js
|
||||
// @downloadURL https://gitea.bmsch.de/balthasar/Scripts/raw/branch/master/owa.js
|
||||
// @grant none
|
||||
// @version 1.0.0
|
||||
// @version 1.1.0
|
||||
// ==/UserScript==
|
||||
|
||||
Notification.requestPermission().then(function(result) {
|
||||
|
|
@ -40,7 +40,7 @@ window.setInterval(function(){
|
|||
document.title = "("+nMails+') ' + document.title
|
||||
}
|
||||
if (nMails > 0){
|
||||
if (notified !== nMails) {
|
||||
if (notified < nMails) {
|
||||
//console.log("OWA: "+nMails+" new mails")
|
||||
var img = 'https://webmail.med.uni-muenchen.de/owa/prem/15.0.1365.1/resources/images/0/favicon.ico';
|
||||
var n = new Notification("New mails on OWA: "+nMails, {icon:img});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue