feat: per-app UA config, fix demo file path and back-loop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user