mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-16 07:46:31 +00:00
Fix content not loading when the app path contains special characters
Changelog-entry: Fix content not loading when the app path contains special characters Change-type: patch
This commit is contained in:
parent
78a5339e3e
commit
b9076d01af
@ -174,7 +174,13 @@ async function createMainWindow() {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
mainWindow.loadURL(`file://${path.join(__dirname, 'index.html')}`);
|
||||
mainWindow.loadURL(
|
||||
`file://${path.join(
|
||||
'/',
|
||||
...__dirname.split(path.sep).map(encodeURIComponent),
|
||||
'index.html',
|
||||
)}`,
|
||||
);
|
||||
|
||||
const page = mainWindow.webContents;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user