Browse Source

Remove electron "browser plugin" support, as AFAICT, there's no use of

it and none of the apps should be using plugins.

If I'm wrong, let me know. Eg, I can call using Hangouts/GMail without
it.

Mobile webview support requires browser plugins to be disabled anyway.
pull/3202/head
TheGoddessInari 7 years ago
parent
commit
c61ffb5f64
  1. 3
      app/ux/WebView.js
  2. 3
      electron/main.js

3
app/ux/WebView.js

@ -165,10 +165,9 @@ Ext.define('Rambox.ux.WebView',{
,src: me.record.get('url')
,style: 'width:100%;height:100%;visibility:visible;'
,partition: 'persist:' + me.record.get('type') + '_' + me.id.replace('tab_', '') + (localStorage.getItem('id_token') ? '_' + Ext.decode(localStorage.getItem('profile')).user_id : '')
,plugins: 'true'
,allowtransparency: 'on'
,autosize: 'on'
,webpreferences: '' //,nativeWindowOpen=yes
,webpreferences: '' //,nativeWindowOpen=true
//,disablewebsecurity: 'on' // Disabled because some services (Like Google Drive) dont work with this enabled
,useragent: Ext.getStore('ServicesList').getById(me.record.get('type')).get('userAgent')
,preload: './resources/js/rambox-service-api.js'

3
electron/main.js

@ -87,8 +87,7 @@ function createWindow () {
,show: !config.get('start_minimized')
,acceptFirstMouse: true
,webPreferences: {
plugins: true
,partition: 'persist:rambox'
partition: 'persist:rambox'
}
});

Loading…
Cancel
Save