Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
lencx committed Jan 24, 2023
1 parent c55ac1d commit 817cd6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src-tauri/src/app/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ pub fn init(app: &mut App) -> std::result::Result<(), Box<dyn std::error::Error>
.inner_size(800.0, 600.0)
.theme(theme)
.always_on_top(chat_conf.stay_on_top)
.title_bar_style(ChatConfJson::titlebar())
.initialization_script(&utils::user_script())
.initialization_script(include_str!("../scripts/core.js"))
.user_agent(&chat_conf.ua_window);

if cfg!(target_os = "macos") {
main_win = main_win.hidden_title(true);
main_win = main_win
.title_bar_style(ChatConfJson::titlebar())
.hidden_title(true);
}

if url == "https://chat.openai.com" && !chat_conf.main_dashboard {
Expand Down

0 comments on commit 817cd6f

Please sign in to comment.