mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
fix: US variant of consent popup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user