From a5205f179e577cce5c05b710b597da8f4e1d0780 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 7 May 2024 09:59:58 -0300 Subject: [PATCH] fix(utils): wrong ToTokens impl of the window proxy_url config (#9691) --- .changes/fix-proxy-url-totokens-impl.md | 5 +++++ core/tauri-utils/src/config.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-proxy-url-totokens-impl.md diff --git a/.changes/fix-proxy-url-totokens-impl.md b/.changes/fix-proxy-url-totokens-impl.md new file mode 100644 index 000000000..43a7c2dc5 --- /dev/null +++ b/.changes/fix-proxy-url-totokens-impl.md @@ -0,0 +1,5 @@ +--- +"tauri-utils": patch:bug +--- + +Fixes the ToTokens implementation of the window configuration `proxy_url` field. diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 7d60cf0d8..73acca8fc 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -2243,7 +2243,7 @@ mod build { let minimizable = self.minimizable; let closable = self.closable; let title = str_lit(&self.title); - let proxy_url = opt_str_lit(self.proxy_url.as_ref()); + let proxy_url = opt_lit(self.proxy_url.as_ref().map(url_lit).as_ref()); let fullscreen = self.fullscreen; let focus = self.focus; let transparent = self.transparent;