mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: proxy issue
This commit is contained in:
parent
cc6b364b87
commit
5b6619d1de
4 changed files with 17 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue