fix previous commit

This commit is contained in:
Sam Sneed 2024-08-13 17:33:06 -05:00
parent d1c7f53d16
commit dda48fc695

View file

@ -11,7 +11,8 @@ ipcMain.on('windowmaker', (event, arg) => {
createWindow();
})
const proxy = createProxy(http.createServer());
proxy.listen(3129)
//Function to enable AD Blocking and extensions...
let blocker = undefined
let extensions = undefined
@ -112,12 +113,6 @@ const regexPatterns = [
return false;
}
// set/create local proxy
try {
const proxy = createProxy(http.createServer());
proxy.listen(3129)
} catch {}
session.defaultSession.setProxy({
proxyRules: 'http=localhost:3129;https=localhost:3129',
proxyBypassRules: '<local>'