Browse Source

Fixed Hangouts modal videocalls

pull/1203/head
Ramiro Saenz 8 years ago
parent
commit
3b3772489a
  1. 6
      app/ux/WebView.js

6
app/ux/WebView.js

@ -276,7 +276,7 @@ Ext.define('Rambox.ux.WebView',{
if ( e.url.indexOf('plus.google.com/u/0/photos/albums') >= 0 ) { if ( e.url.indexOf('plus.google.com/u/0/photos/albums') >= 0 ) {
ipc.send('image:popup', e.url, e.target.partition); ipc.send('image:popup', e.url, e.target.partition);
return; return;
} else if ( e.url.indexOf('https://hangouts.google.com/hangouts/_/CONVERSATION/') >= 0 ) { } else if ( e.url.indexOf('/el/CONVERSATION/') >= 0 ) {
me.add({ me.add({
xtype: 'window' xtype: 'window'
,title: 'Video Call' ,title: 'Video Call'
@ -295,7 +295,7 @@ Ext.define('Rambox.ux.WebView',{
tag: 'webview' tag: 'webview'
,src: e.url ,src: e.url
,style: 'width:100%;height:100%;' ,style: 'width:100%;height:100%;'
,partition: 'persist:' + me.record.get('type') + '_' + me.id.replace('tab_', '') + (localStorage.getItem('id_token') ? '_' + Ext.decode(localStorage.getItem('profile')).user_id : '') ,partition: me.getWebView().partition
,useragent: Ext.getStore('ServicesList').getById(me.record.get('type')).get('userAgent') ,useragent: Ext.getStore('ServicesList').getById(me.record.get('type')).get('userAgent')
} }
} }
@ -323,7 +323,7 @@ Ext.define('Rambox.ux.WebView',{
tag: 'webview' tag: 'webview'
,src: e.url ,src: e.url
,style: 'width:100%;height:100%;' ,style: 'width:100%;height:100%;'
,partition: e.options.webPreferences.partition ,partition: me.getWebView().partition
,useragent: Ext.getStore('ServicesList').getById(me.record.get('type')).get('userAgent') ,useragent: Ext.getStore('ServicesList').getById(me.record.get('type')).get('userAgent')
} }
} }

Loading…
Cancel
Save