Browse Source

Inject JS always from ServicesList

pull/116/head
Ramiro Saenz 9 years ago
parent
commit
46ec0f0406
  1. 7
      app/ux/WebView.js

7
app/ux/WebView.js

@ -109,9 +109,10 @@ Ext.define('Rambox.ux.WebView',{
// Injected code to detect new messages // Injected code to detect new messages
if ( me.record && me.record.get('js_unread') !== '' ) { if ( me.record && me.record.get('js_unread') !== '' ) {
console.info('JS Injected', me.src); console.info('JS Injected to Detect New Messages', me.src);
console.log(me.record.get('js_unread')); var js_unread = Ext.getStore('ServicesList').getById(me.record.get('type')).get('js_unread');
webview.executeJavaScript(me.record.get('js_unread')); console.log(js_unread);
webview.executeJavaScript(js_unread);
} }
// Scroll always to top (bug) // Scroll always to top (bug)

Loading…
Cancel
Save