From 493a74edd0fafb56e98e8bab704958c5e2b63890 Mon Sep 17 00:00:00 2001 From: SpikeHD <25207995+SpikeHD@users.noreply.github.com> Date: Sat, 14 Dec 2024 22:24:50 -0800 Subject: [PATCH] fix: linux build --- src-tauri/src/util/window_helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/util/window_helpers.rs b/src-tauri/src/util/window_helpers.rs index 43423c8..d03803a 100644 --- a/src-tauri/src/util/window_helpers.rs +++ b/src-tauri/src/util/window_helpers.rs @@ -137,7 +137,7 @@ pub fn set_user_agent(win: &tauri::WebviewWindow) { let webview = webview.inner(); let settings = webview.settings().unwrap(); - settings.set_user_agent(Some(useragent())); + settings.set_user_agent(Some(&useragent())); }) .unwrap_or_else(|e| log!("Failed to set user-agent: {:?}", e)); }