feat(window): add incognito option (#418)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
Amr Bashir
2023-06-18 13:19:04 +03:00
committed by GitHub
parent c81dff292a
commit 2fc420ba37
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"window-js": "minor"
---
Add `incognito` window configuration option
+8
View File
@@ -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 {