Fix #1306 - Update address bar on clicking a link

This commit is contained in:
SatyamAgrawal 2024-09-18 17:05:26 +05:30
parent 6e7c23a114
commit 331ba07ff3

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) => {