Skip to content

Commit 35169aa

Browse files
committed
fix oversight
1 parent 9a34a61 commit 35169aa

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/actions/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ pub async fn install(
6969
.await?;
7070

7171
let _ = sender.send((0.6, t!("client.info.setting_up_destination").into()));
72+
#[cfg(target_arch = "wasm32")]
73+
let location = PathBuf::new();
7274

7375
let versions_dir = location.join("versions");
7476
let profile_dir = versions_dir.join(&profile_name);

src/actions/server.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ async fn install_path(
100100
)
101101
};
102102
let _ = sender.send((0.1, message.into()));
103+
#[cfg(not(target_arch = "wasm32"))]
103104
let location = location.canonicalize()?;
105+
#[cfg(target_arch = "wasm32")]
106+
let location = PathBuf::new();
104107

105108
#[cfg(not(target_arch = "wasm32"))]
106109
let clear_paths = [location.join(".fabric"), location.join(".quilt")];

0 commit comments

Comments
 (0)