diff --git a/.changes/window-incognito.md b/.changes/window-incognito.md new file mode 100644 index 000000000..5d64fb030 --- /dev/null +++ b/.changes/window-incognito.md @@ -0,0 +1,5 @@ +--- +"window-js": "minor" +--- + +Add `incognito` window configuration option diff --git a/plugins/window/guest-js/index.ts b/plugins/window/guest-js/index.ts index 518383b21..70051edb7 100644 --- a/plugins/window/guest-js/index.ts +++ b/plugins/window/guest-js/index.ts @@ -1884,6 +1884,14 @@ interface WindowOptions { * The user agent for the webview. */ userAgent?: string; + /** + * Whether or not the webview should be launched in incognito mode. + * + * #### Platform-specific + * + * - **Android:** Unsupported. + */ + incognito?: boolean; } function mapMonitor(m: Monitor | null): Monitor | null {