fix: open current webview URL when launching external link
This commit is contained in:
parent
b49d80b78d
commit
2076e6f998
@ -49,7 +49,10 @@ const PopupContainer: React.FC<Props> = ({ app, resolve }) => {
|
||||
}
|
||||
|
||||
const onOpenLink = () => {
|
||||
window.api.openWebsite(app.url)
|
||||
if (webviewRef.current) {
|
||||
const currentUrl = webviewRef.current.getURL()
|
||||
window.api.openWebsite(currentUrl)
|
||||
}
|
||||
}
|
||||
|
||||
const onTogglePin = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user