Skip to content

Commit 2fc420b

Browse files
feat(window): add incognito option (#418)
Co-authored-by: Lucas Nogueira <[email protected]>
1 parent c81dff2 commit 2fc420b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changes/window-incognito.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"window-js": "minor"
3+
---
4+
5+
Add `incognito` window configuration option

plugins/window/guest-js/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,6 +1884,14 @@ interface WindowOptions {
18841884
* The user agent for the webview.
18851885
*/
18861886
userAgent?: string;
1887+
/**
1888+
* Whether or not the webview should be launched in incognito mode.
1889+
*
1890+
* #### Platform-specific
1891+
*
1892+
* - **Android:** Unsupported.
1893+
*/
1894+
incognito?: boolean;
18871895
}
18881896

18891897
function mapMonitor(m: Monitor | null): Monitor | null {

0 commit comments

Comments
 (0)