Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: set proxy on startup

Abdullah Atta9a1f54c41a68
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index dd8d420ee..b31d6f3ce 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -112,6 +112,7 @@ async function createWindow() {
mainWindow.webContents.session.setSpellCheckerDictionaryDownloadURL(
"http://dictionaries.notesnook.com/"
);
+ mainWindow.webContents.session.setProxy({ proxyRules: config.proxyRules });
mainWindow.once("closed", () => {
globalThis.window = null;