forked from 1b-agent/opencadstudio-upstream
Merge pull request #1347 from helenkwok/fix/wasm32-main-build
Fix wasm32 build: gate the font download and XREF open call sites
This commit is contained in:
commit
4905d99e51
2 files changed
+19
No files matched your search
@@ -2489,6 +2489,7 @@ impl OpenCADStudio {
|
||||
if is_dwg {
|
||||
return self.update(Message::OpenRecent(std::path::PathBuf::from(found)));
|
||||
} else {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
let _ = open::that_detached(&found);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user