Browse Source

Add unread count to Intercom

pull/1319/head
Christian Pedersen 8 years ago committed by GitHub
parent
commit
b8af5e9424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/store/ServicesList.js

2
app/store/ServicesList.js

@ -821,6 +821,8 @@ Ext.define('Rambox.store.ServicesList', {
,description: 'Intercom makes it easy to communicate with your customers personally, at scale. Designed to feel like the messaging apps you use every day, Intercom lets you talk to consumers almost anywhere: inside your app, on your website, across social media and via email.'
,url: 'https://app.intercom.io'
,type: 'messaging'
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("unread")[0];updateBadge(t=parseInt(a.textContent.replace(/[^0-9]/g,"")))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3000);'
,dont_update_unread_from_title: true
},
{
id: 'allo'

Loading…
Cancel
Save