fix(nym-wallet): use HTTPS asset scheme for programmatic webviews

Tauri defaults WebviewWindowBuilder to use_https_scheme=false while
tauri.conf uses useHttpsScheme=true for the main window. Secondary
windows (logs, auth/main swap) then load the asset protocol on a
different origin; scripts can fail to run, leaving a blank webview and
broken UI. Align with app config.
This commit is contained in:
Tommy Verrall
2026-05-06 14:23:13 +02:00
parent e8fe6a29c0
commit 69ed018ffc
2 changed files with 2 additions and 0 deletions
@@ -34,6 +34,7 @@ async fn create_window(
)
.title("Nym Wallet")
.background_color(NYM_WALLET_WEBVIEW_BG)
.use_https_scheme(true)
.build()
{
Ok(window) => {
@@ -20,6 +20,7 @@ pub fn help_log_toggle_window(app_handle: tauri::AppHandle) -> Result<(), Backen
)
.title("Nym Wallet Logs")
.background_color(NYM_WALLET_WEBVIEW_BG)
.use_https_scheme(true)
.build()
{
Ok(window) => {