Browse Source

Don't allow insecure content.

pull/1773/head
TheGoddessInari 7 years ago
parent
commit
8d808207c8
  1. 2
      app/ux/WebView.js
  2. 4
      electron/main.js

2
app/ux/WebView.js

@ -174,7 +174,7 @@ Ext.define('Rambox.ux.WebView',{
,plugins: 'true'
,allowtransparency: 'on'
,autosize: 'on'
,webpreferences: 'allowRunningInsecureContent=yes' //,nativeWindowOpen=yes
,webpreferences: '' //,nativeWindowOpen=yes
//,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'

4
electron/main.js

@ -157,9 +157,7 @@ function createWindow () {
,show: !config.get('start_minimized')
,acceptFirstMouse: true
,webPreferences: {
webSecurity: false
,nodeIntegration: true
,plugins: true
plugins: true
,partition: 'persist:rambox'
}
});

Loading…
Cancel
Save