Преглед изворни кода

Fix opened browser blocking dx serve (#3818)

wdcocq пре 4 месеци
родитељ
комит
062ea02e07
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/cli/src/serve/handle.rs

+ 1 - 1
packages/cli/src/serve/handle.rs

@@ -356,7 +356,7 @@ impl AppHandle {
             Some(base_path) => format!("/{}", base_path.trim_matches('/')),
             None => "".to_owned(),
         };
-        _ = open::that(format!("{protocol}://{address}{base_path}"));
+        _ = open::that_detached(format!("{protocol}://{address}{base_path}"));
     }
 
     /// Use `xcrun` to install the app to the simulator