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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user