fix(tauri) addition to the previous commit

This commit is contained in:
Lucas Nogueira
2020-07-10 12:07:48 -03:00
parent 02cdfdf646
commit f340b2914d
2 changed files with 7 additions and 1 deletions

6
.changes/loopback-fix.md Normal file
View File

@@ -0,0 +1,6 @@
---
"tauri-bundler": patch
"tauri": patch
---
Ignoring non UTF-8 characters on the loopback command output.

View File

@@ -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")