Use app://./index.html to prevent Electron from adding trailing slash

This commit is contained in:
Alex Gleason committed 2025-10-24 23:11:19 -05:00
1 parent 58b4d1562d
commit b334680ee7
1 file changed
+2 -2
+2 -2
View File
@@ -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