fix loading wrong url, log connection errors
This commit is contained in:
@@ -51,10 +51,11 @@ function createMainWindow() {
|
|||||||
let event = new Event("DummyNavigation");
|
let event = new Event("DummyNavigation");
|
||||||
event.url = url;
|
event.url = url;
|
||||||
if (validateDomain(event)) {
|
if (validateDomain(event)) {
|
||||||
win.loadURL(url);
|
win.loadURL(config.data.url);
|
||||||
}
|
}
|
||||||
return { action: 'deny' };
|
return { action: 'deny' };
|
||||||
});
|
});
|
||||||
|
win.webContents.on("did-fail-load", (event) => log.error(event));
|
||||||
win.on("page-title-updated", (event) => event.preventDefault());
|
win.on("page-title-updated", (event) => event.preventDefault());
|
||||||
|
|
||||||
// Load page from config file
|
// Load page from config file
|
||||||
|
|||||||
Reference in New Issue
Block a user