From b334680ee7cc343dec8ab4501c2fc6a3c427616f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 24 Oct 2025 23:11:19 -0500 Subject: [PATCH] Use app://./index.html to prevent Electron from adding trailing slash --- electron/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/main.js b/electron/main.js index b37b2aef..9dd7a801 100644 --- a/electron/main.js +++ b/electron/main.js @@ -59,8 +59,8 @@ function createWindow() { } else { // Production mode - load from custom protocol // This allows absolute paths like /shakespeare.svg to work naturally - console.log('Loading from app:// protocol: app://index.html'); - mainWindow.loadURL('app://index.html'); + console.log('Loading from app:// protocol: app://./index.html'); + mainWindow.loadURL('app://./index.html'); } // Log any load errors