feat: per-app UA config, fix demo file path and back-loop

This commit is contained in:
2026-08-17 19:51:54 +08:00
parent 5498c8ed0b
commit 24c78bb9c2
6 changed files with 64 additions and 17 deletions
@@ -8,9 +8,10 @@ import top.yeij.hearth.webapp.Tab
// multi-WebView lifecycle, visibility, and navigation, and syncing tab state
// back to the desktop H5 topbar
interface WebAppHost {
// 创建内容 WebView 加载 url 并显示(已存在则切换到该标签)
// Create a content WebView loading url and show it (switch if already open)
fun openWebView(id: String, url: String)
// 创建内容 WebView 加载 url 并显示(已存在则切换到该标签)ua 为清单声明的 UA
// Create a content WebView loading url and show it (switch if already open);
// ua is the UA declared in the manifest
fun openWebView(id: String, url: String, ua: String?)
// 销毁对应内容 WebView
// Destroy the corresponding content WebView