tw93 / Pake

🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用
MIT License
32.99k stars 5.72k forks source link

Window jump/窗口跳转 #495

Closed Grey-Wind closed 1 year ago

Grey-Wind commented 1 year ago

Search before asking

Motivation

Whether internal jump Windows can be supported Because some pages need to jump 是否可以支持内部跳转窗口 因为有的网页需要跳转

Solution

No response

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

tw93 commented 1 year ago

有没有具体页面的案例,我看看,现在的判断逻辑是这样,可以试试有没有办法让域名同源,或者告诉我详细规则,我来加一些就好

if (window.location.host !== hrefUrl.host && (target === '_blank' || target === '_new')) {
    e.preventDefault && e.preventDefault();
    tauri.shell.open(absoluteUrl);
    return;
 }
tw93 commented 1 year ago

一周没有回复,暂时关闭,假如看到了,辛苦给我一下信息,同时可以打开这个issue