From 2fc420ba375de924f236f5b32d26667f742fcd6b Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Sun, 18 Jun 2023 13:19:04 +0300 Subject: [PATCH] feat(window): add `incognito` option (#418) Co-authored-by: Lucas Nogueira --- .changes/window-incognito.md | 5 +++++ plugins/window/guest-js/index.ts | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 .changes/window-incognito.md 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 {