fix: open current webview URL when launching external link

This commit is contained in:
ousugo 2025-02-17 15:21:13 +08:00 committed by 亢奋猫
parent b49d80b78d
commit 2076e6f998

View File

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