diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 9890b99c..33b8fe9b 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -831,6 +831,15 @@ Ext.define('Rambox.store.ServicesList', { ,type: 'messaging' ,js_unread: 'function checkUnread(){var e=document.getElementsByClassName("unreadCount"),n=0;for(i=0;i=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);' ,dont_update_unread_from_title: true + }, + { + id: 'googlevoice' + ,logo: 'googlevoice.png' + ,name: 'Google Voice' + ,description: 'A free phone number for life. Stay in touch from any screen. Use your free number to text, call, and check voicemail all from one app. Plus, Google Voice works on all of your devices so you can connect and communicate how you want.' + ,url: 'https://voice.google.com' + ,type: 'messaging' + ,js_unread: 'function parseIntOrZero(e){return isNaN(parseInt(e))?0:parseInt(e)}function checkUnread(){var e=document.querySelector(".msgCount"),n=0;e?n=parseIntOrZero(e.innerHTML.replace(/[\(\) ]/gi,"")):["Messages","Calls","Voicemail"].forEach(function(e){var r=document.querySelector(\'gv-nav-button[tooltip="\'+e+\'"] div[aria-label="Unread count"]\');r&&(n+=parseIntOrZero(r.innerHTML))}),updateBadge(n)}function updateBadge(e){var n=e>0?"("+e+") ":"";document.title=n+originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);' } ] }); diff --git a/resources/icons/googlevoice.png b/resources/icons/googlevoice.png new file mode 100644 index 00000000..76682773 Binary files /dev/null and b/resources/icons/googlevoice.png differ