Merge pull request #1307 from Asatyam/fix/update-address-bar-1306

Fix #1306 - Update address bar on clicking a link
This commit is contained in:
V 2024-09-18 14:17:45 +02:00 committed by GitHub
commit 508fd7372a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -276,8 +276,10 @@ const Device = ({ isPrimary, device, setIndividualDevice }: Props) => {
}
};
webview.addEventListener('did-navigate', didNavigateHandler);
webview.addEventListener('did-navigate-in-page', didNavigateHandler);
handlerRemovers.push(() => {
webview.removeEventListener('did-navigate', didNavigateHandler);
webview.removeEventListener('did-navigate-in-page', didNavigateHandler);
});
const ipcMessageHandler = (e: Electron.IpcMessageEvent) => {