InstallPWAOptions 接口
🌐 InstallPWAOptions interface
[Browser.installPWA()] 的选项。
🌐 Options for Browser.installPWA().
语法
🌐 Signature
export interface InstallPWAOptions
属性
🌐 Properties
|
属性 🌐 Property |
修饰符 🌐 Modifiers |
类型 🌐 Type |
描述 🌐 Description |
默认 🌐 Default |
|---|---|---|---|---|
|
displayMode |
|
这个应用应该在独立窗口还是浏览器标签中打开。 🌐 Whether the app should open in a standalone window or a browser tab. 附注
| ||
|
installUrlOrBundleUrl |
string |
用于安装应用的 URL,或其签名Webpack的 URL。 🌐 The URL used to install the app, or the URL of its signed web bundle. 这是必要的,因为浏览器范围的 CDP 会话没有关联的页面,Chromium 无法从中获取安装 URL。 🌐 This is required because the browser-scoped CDP session has no associated page from which Chromium could derive an install URL. | ||
|
manifestId |
string |
来自网络应用清单文件的 ID,通常是安装该网络应用的网站 URL。见 Web 应用清单。 🌐 The id from the web app's manifest file, commonly the URL of the site installing the web app. See Web app manifest. |