From 5ec8028c52c726fa4f54bb6a290bd25382ccc1a6 Mon Sep 17 00:00:00 2001 From: linus Date: Fri, 18 Sep 2026 21:04:33 +0200 Subject: [PATCH] add coments --- src/main.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 011f61c..a837160 100644 --- a/src/main.js +++ b/src/main.js @@ -3,14 +3,20 @@ const path = require("path"); const fs = require("fs"); const os = require("os"); -// Path to the MAL-Sync extension -// source (github.com/MALSync/MALSync). Electron load unpacked Chrome -// extensions directly via session.loadExtension. +// Path to the MAL-Sync extension we built earlier from the real MALSync +// source (github.com/MALSync/MALSync). Electron can load unpacked Chrome +// extensions directly via session.loadExtension, so the SAME extension +// code that runs in Brave also runs here, inside our own app's browser +// tab - MAL-Sync itself is unmodified, just hosted in our own window +// instead of a general-purpose browser. const MALSYNC_EXTENSION_PATH = path.join( require("os").homedir(), "../extensions/MALSync/dist/webextension" ); +// Shares the same config file as our existing anilist-tracker hub server +// (~/.anilist-tracker/config.json), so this app reads the SAME AniList +// access token you already logged in with - no separate login needed. const CONFIG_PATH = path.join(os.homedir(), ".anilist-tracker", "config.json"); function loadHubConfig() {