From 69ed018ffc4ba95696de072a4def48a1388ffa5d Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Wed, 6 May 2026 14:23:13 +0200 Subject: [PATCH] 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. --- nym-wallet/src-tauri/src/operations/app/window.rs | 1 + nym-wallet/src-tauri/src/operations/help/log.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/nym-wallet/src-tauri/src/operations/app/window.rs b/nym-wallet/src-tauri/src/operations/app/window.rs index 1d5482e409..a40c1d9688 100644 --- a/nym-wallet/src-tauri/src/operations/app/window.rs +++ b/nym-wallet/src-tauri/src/operations/app/window.rs @@ -34,6 +34,7 @@ async fn create_window( ) .title("Nym Wallet") .background_color(NYM_WALLET_WEBVIEW_BG) + .use_https_scheme(true) .build() { Ok(window) => { diff --git a/nym-wallet/src-tauri/src/operations/help/log.rs b/nym-wallet/src-tauri/src/operations/help/log.rs index 08a90a0085..0139c93da1 100644 --- a/nym-wallet/src-tauri/src/operations/help/log.rs +++ b/nym-wallet/src-tauri/src/operations/help/log.rs @@ -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) => {