Skip to content

Commit

Permalink
fix(core): isolation pattern regression from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Apr 12, 2023
1 parent fa90214 commit daf21c7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/tauri/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,16 @@ impl<R: Runtime> Window<R> {
let manager = self.manager.clone();
let current_url = self.url();
let config_url = manager.get_url();
let is_local = config_url.make_relative(&current_url).is_some();
#[allow(unused_mut)]
let mut is_local = config_url.make_relative(&current_url).is_some();
#[cfg(feature = "isolation")]
if let crate::Pattern::Isolation { schema, .. } = &self.manager.inner.pattern {
if current_url.scheme() == schema
&& current_url.domain() == Some(crate::pattern::ISOLATION_IFRAME_SRC_DOMAIN)
{
is_local = true;
}
}

match payload.cmd.as_str() {
"__initialized" => {
Expand Down

0 comments on commit daf21c7

Please sign in to comment.