mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Add titlebar notifications to Dispy.
This commit is contained in:
parent
9cabcad36c
commit
11eebf7091
1 changed files with 12 additions and 0 deletions
|
@ -56,4 +56,16 @@ function checkNotify() {
|
|||
};
|
||||
setInterval(function () {checkNotify();}, 10 * 1000);
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
var doctitle = document.title;
|
||||
function checkNotify() {
|
||||
if(document.getElementById("notify-update").innerHTML != "")
|
||||
document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle;
|
||||
else
|
||||
document.title = doctitle;
|
||||
};
|
||||
setInterval(function () {checkNotify();}, 10 * 1000);
|
||||
})
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue