From 9627fc861484010491369da248d846fad79d6184 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 11 Jul 2016 20:12:06 -0300 Subject: [PATCH] Patch for Outlook 365 (temporary) --- app/ux/WebView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ux/WebView.js b/app/ux/WebView.js index 07ee1a79..a48e22c1 100644 --- a/app/ux/WebView.js +++ b/app/ux/WebView.js @@ -116,7 +116,7 @@ Ext.define('Rambox.ux.WebView',{ // Injected code to detect new messages if ( me.record && me.record.get('js_unread') !== '' ) { console.info('JS Injected to Detect New Messages', me.src); - var js_unread = Ext.getStore('ServicesList').getById(me.record.get('type')).get('js_unread'); + var js_unread = Ext.getStore('ServicesList').getById(me.record.get('type') === 'office365' ? 'outlook365' : me.record.get('type')).get('js_unread'); console.log(js_unread); webview.executeJavaScript(js_unread); }