Browse Source

vtype is back

pull/1387/head
Pavel Samokha 7 years ago
parent
commit
3b222d8d48
  1. 1
      app/view/preferences/Preferences.js
  2. 3
      electron/main.js

1
app/view/preferences/Preferences.js

@ -265,6 +265,7 @@ Ext.define('Rambox.view.preferences.Preferences',{
,items: [ ,items: [
{ {
xtype: 'textfield' xtype: 'textfield'
,vtype: 'url'
,fieldLabel: 'Host' ,fieldLabel: 'Host'
,name: 'proxyHost' ,name: 'proxyHost'
,value: config.proxyHost ,value: config.proxyHost

3
electron/main.js

@ -464,8 +464,7 @@ ipcMain.on('toggleWin', function(event, allwaysShow) {
// Proxy // Proxy
if ( config.get('proxy') ) { if ( config.get('proxy') ) {
app.commandLine.appendSwitch('proxy-server', 'http://'+config.get('proxyHost')+':'+config.get('proxyPort')); app.commandLine.appendSwitch('proxy-server', config.get('proxyHost')+':'+config.get('proxyPort'));
console.info('test2')
app.on('login', (event, webContents, request, authInfo, callback) => { app.on('login', (event, webContents, request, authInfo, callback) => {
if(!authInfo.isProxy) if(!authInfo.isProxy)
return; return;

Loading…
Cancel
Save