Skip to content

Commit

Permalink
wip: Linux?
Browse files Browse the repository at this point in the history
  • Loading branch information
veryard committed Nov 1, 2024
1 parent c91f215 commit 1b42148
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/desktop/src/widget_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@ impl WidgetFactory {
let () = msg_send![webview.inner() as *mut Object, setCustomUserAgent: agent];
};

#[cfg(target_os = "linux")]
{
use webkit2gtk::{WebViewExt, SettingsExt};
let webview = webview.inner();
let settings = webview.settings().unwrap();
settings.set_user_agent(Some(&user_agent));
}
// TODO: Linux
})
.unwrap();
Expand Down

0 comments on commit 1b42148

Please sign in to comment.