fix(browser): 面板回车提交路径也要记录最近访问(onUrl 不走 goTo)
This commit is contained in:
1 parent
7119dcf356
commit
df5361cf6e
1 file changed
+4
-1
@@ -653,7 +653,10 @@
|
||||
else if (!hasEngine) st.empty.textContent = '当前客户端还没有面板内浏览能力(需要 v3.25.30 及以上)。\n请先更新客户端。'
|
||||
// 面板关掉就没了,「✕ 关闭这个网页」在面板里没有意义
|
||||
st.close.style.display = 'none'
|
||||
st.onUrl = function (url) { try { ctx.settings.set('lastUrl', url) } catch (e) { /* 忽略 */ } }
|
||||
st.onUrl = function (url) {
|
||||
try { ctx.settings.set('lastUrl', url) } catch (e) { /* 忽略 */ }
|
||||
remember(url) // 面板里回车提交走这条(不走 goTo),最近访问要在这里记
|
||||
}
|
||||
|
||||
// ── 最近访问(v1.7.0)────────────────────────────────────────────────
|
||||
// 存 ctx.data(桌面:<资料目录>/plugin-data/browser.json),与 settings 分开:
|
||||
|
||||
Reference in new issue
Block a user