From dda48fc6950bf19b6722551217adb04ec6deda8e Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:33:06 -0500 Subject: [PATCH] fix previous commit --- main.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/main.js b/main.js index 0d3ca98..bd1d077 100644 --- a/main.js +++ b/main.js @@ -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: ''