fix loading wrong url, log connection errors

This commit is contained in:
2024-06-05 09:24:51 +02:00
parent 3c38667e3c
commit 792e82e035
+2 -1
View File
@@ -51,10 +51,11 @@ function createMainWindow() {
let event = new Event("DummyNavigation");
event.url = url;
if (validateDomain(event)) {
win.loadURL(url);
win.loadURL(config.data.url);
}
return { action: 'deny' };
});
win.webContents.on("did-fail-load", (event) => log.error(event));
win.on("page-title-updated", (event) => event.preventDefault());
// Load page from config file