Browse Source

Add js snippet to get the unread counter

pull/1744/head
Carlos Ortega 7 years ago
parent
commit
ec4d9f940c
  1. 1
      app/store/ServicesList.js

1
app/store/ServicesList.js

@ -916,6 +916,7 @@ Ext.define('Rambox.store.ServicesList', {
,description: 'Text on your computer with Messages for web.'
,url: 'https://messages.android.com/'
,type: 'messaging'
,js_unread: 'function updateBadge(){var t = Array.prototype.slice.call(document.querySelectorAll('content div:empty')).reduce(function(c, e){return(window.getComputedStyle(e)["font-weight"]=="600")+c;},0)/4;var n=t>0?"("+t+") ":"";document.title=n+originalTitle}var originalTitle=document.title;setInterval(updateBadge,3e3);'
}
]
});

Loading…
Cancel
Save