fix: proxy issue

This commit is contained in:
qier222 2021-05-17 19:04:14 +08:00
parent cc6b364b87
commit 5b6619d1de
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
4 changed files with 17 additions and 2 deletions

View file

@ -247,6 +247,14 @@ class Background {
// init ipcMain
initIpcMain(this.window, this.store);
// set proxy
const proxyRules = this.store.get('proxy');
if (proxyRules) {
this.window.webContents.session.setProxy({ proxyRules }, result => {
console.log('finished setProxy', result);
});
}
// check for updates
this.checkForUpdates();