Skip to content

Commit

Permalink
fix(tauri) addition to the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Jul 10, 2020
1 parent 02cdfdf commit f340b29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/loopback-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-bundler": patch
"tauri": patch
---

Ignoring non UTF-8 characters on the loopback command output.
2 changes: 1 addition & 1 deletion tauri/src/app/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn setup_content() -> crate::Result<Content<String>> {
panic!("Failed to execute CheckNetIsolation LoopbackExempt -s");
}

let output_str = String::from_utf8(exempt_output.stdout)?.to_lowercase();
let output_str = String::from_utf8_lossy(exempt_output.stdout).to_lowercase();
if !output_str.contains("win32webviewhost_cw5n1h2txyewy") {
println!("Running Loopback command");
runas::Command::new("powershell")
Expand Down

0 comments on commit f340b29

Please sign in to comment.