Skip to content

Commit 6a4451b

Browse files
fix(windows): isolation pattern create iframe loop (#13849)
1 parent 56277e4 commit 6a4451b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changes/isolation-iframe-loop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Fix isolation pattern creates iframes within iframes on Windows

crates/tauri/src/pattern.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ pub(crate) struct PatternJavascript {
8484
pub(crate) pattern: PatternObject,
8585
}
8686

87-
#[allow(dead_code)]
87+
#[cfg(feature = "isolation")]
8888
pub(crate) fn format_real_schema(schema: &str, https: bool) -> String {
8989
if cfg!(windows) || cfg!(target_os = "android") {
9090
let scheme = if https { "https" } else { "http" };
91-
format!("{scheme}://{schema}.{ISOLATION_IFRAME_SRC_DOMAIN}")
91+
format!("{scheme}://{schema}.{ISOLATION_IFRAME_SRC_DOMAIN}/")
9292
} else {
93-
format!("{schema}://{ISOLATION_IFRAME_SRC_DOMAIN}")
93+
format!("{schema}://{ISOLATION_IFRAME_SRC_DOMAIN}/")
9494
}
9595
}

0 commit comments

Comments
 (0)