fix(utils): wrong ToTokens impl of the window proxy_url config (#9691)

This commit is contained in:
Lucas Fernandes Nogueira 2024-05-07 09:59:58 -03:00 committed by GitHub
parent 5529c5ab69
commit a5205f179e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-utils": patch:bug
---
Fixes the ToTokens implementation of the window configuration `proxy_url` field.

View File

@ -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;