mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: images not loading with local protocol
This commit is contained in:
parent
884ba47b9b
commit
6b31586734
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ app.whenReady().then(async () => {
|
||||||
electronApp.setAppUserModelId("site.hydralauncher.hydra");
|
electronApp.setAppUserModelId("site.hydralauncher.hydra");
|
||||||
|
|
||||||
protocol.handle("local", (request) => {
|
protocol.handle("local", (request) => {
|
||||||
const filePath = request.url.slice("local://".length);
|
const filePath = request.url.slice("local:".length);
|
||||||
return net.fetch(url.pathToFileURL(filePath).toString());
|
return net.fetch(url.pathToFileURL(decodeURI(filePath)).toString());
|
||||||
});
|
});
|
||||||
|
|
||||||
await dataSource.initialize();
|
await dataSource.initialize();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue