fix loading wrong url, log connection errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user