fix: US variant of consent popup

This commit is contained in:
tdgao
2026-07-20 20:53:10 -07:00
parent 620e7edd9c
commit 3df9f870a4
2 changed files with 428 additions and 62 deletions
+3
View File
@@ -483,6 +483,7 @@ pub async fn init_ads_window<R: Runtime>(
let webview = window.add_child(
tauri::webview::WebviewBuilder::new("ads-window", webview_url)
.incognito(true) // REMOVE WHEN DONE!!
.initialization_script_for_all_frames(include_str!(
"ads-init.js"
))
@@ -582,6 +583,8 @@ pub async fn init_ads_window<R: Runtime>(
}
})?;
webview.open_devtools();
Some(webview)
} else {
None