🐛 修改ua
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -51,7 +51,7 @@ window.addEventListener("DOMContentLoaded", (_event) => {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#page .main_header {
|
||||
#page .main_header, .cb-layout-basic--navbar{
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"package": {
|
||||
"productName": "WeRead",
|
||||
"version": "0.2.0"
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"tauri": {
|
||||
"windows": [
|
||||
|
||||
Reference in New Issue
Block a user