From 23d3a750d6b91048eb9dc6d80c3a137e77c5068d Mon Sep 17 00:00:00 2001 From: Tlntin Date: Sun, 11 Dec 2022 16:07:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Windows=E9=BB=98=E8=AE=A4UA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 41258d6..fe8714b 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -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)?