mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
fix: build error
This commit is contained in:
@@ -2,7 +2,10 @@ use crate::utils::{chat_root, create_file, exists};
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
use std::{collections::BTreeMap, fs, path::PathBuf, sync::Mutex};
|
use std::{collections::BTreeMap, fs, path::PathBuf, sync::Mutex};
|
||||||
use tauri::{Theme, TitleBarStyle};
|
use tauri::Theme;
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
|
use tauri::TitleBarStyle;
|
||||||
|
|
||||||
pub const USER_AGENT: &str = "5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36";
|
pub const USER_AGENT: &str = "5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36";
|
||||||
pub const PHONE_USER_AGENT: &str = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
|
pub const PHONE_USER_AGENT: &str = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
|
||||||
@@ -102,6 +105,7 @@ impl ChatConfJson {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
pub fn titlebar() -> TitleBarStyle {
|
pub fn titlebar() -> TitleBarStyle {
|
||||||
let conf = ChatConfJson::get_chat_conf();
|
let conf = ChatConfJson::get_chat_conf();
|
||||||
if conf.titlebar {
|
if conf.titlebar {
|
||||||
|
|||||||
Reference in New Issue
Block a user