更新Windows默认UA

This commit is contained in:
Tlntin
2022-12-11 16:07:03 +08:00
parent a96feda744
commit 23d3a750d6

View File

@@ -163,7 +163,7 @@ fn main() -> wry::Result<()> {
}
let mut web_content = WebContext::new(Some(data_dir));
#[cfg(target_os = "windows")]
let user_agent_string = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.62";
let user_agent_string = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36";
#[cfg(target_os = "linux")]
let user_agent_string = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36";
WebViewBuilder::new(window)?