🐛 修改ua

This commit is contained in:
Tw93
2022-11-24 21:43:44 +08:00
parent cb8b7d975c
commit bc4c6fd9a4
3 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ fn main() -> wry::Result<()> {
};
// 用于欺骗有些页面对于浏览器的检测
let user_agent_string = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36";
let user_agent_string = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15";
let webview = WebViewBuilder::new(window)?
.with_user_agent(&user_agent_string)

View File

@@ -51,7 +51,7 @@ window.addEventListener("DOMContentLoaded", (_event) => {
display: none !important;
}
#page .main_header {
#page .main_header, .cb-layout-basic--navbar{
padding-top: 20px;
}

View File

@@ -1,7 +1,7 @@
{
"package": {
"productName": "WeRead",
"version": "0.2.0"
"version": "1.0.0"
},
"tauri": {
"windows": [