mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Use app://./index.html to prevent Electron from adding trailing slash
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user