Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 1c3f36be authored by Jérôme Gorin's avatar Jérôme Gorin
Browse files

Subscribe to two more event from browser

parent 8215ae29
Branches
Tags
No related merge requests found
......@@ -37,6 +37,14 @@ export class BrowserSession {
this._mainWindow.webContents.send('browser-event', 'did-finish-load', this._session_name);
});
this.view.webContents.on('did-navigate', () => {
this._mainWindow.webContents.send('browser-event', 'did-navigate', this._session_name);
});
this.view.webContents.on('did-navigate-in-page', () => {
this._mainWindow.webContents.send('browser-event', 'did-navigate-in-page', this._session_name);
});
this.view.webContents.session.webRequest.onBeforeRequest(async (details, callback) => {
this.collector.onBeforeRequestCallbacks.forEach(fn => fn(details));
callback({});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment