forked from 1b-agent/opencadstudio-upstream
fix(web): gate native-only code out of the wasm build
The wasm check broke on the MCP `tools` op, the block library's folder picker and DWG thumbnails, and the PDF export-window culling helpers. Gate each one like the code around it; `read_handle` needs no gate. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
440adec834
commit
f14b675ff7
4 files changed
+10
-1
No files matched your search
@@ -528,6 +528,7 @@ impl OpenCADStudio {
|
||||
Task::none(),
|
||||
);
|
||||
}
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
if op == "tools" {
|
||||
return (
|
||||
json!({
|
||||
|
||||
Reference in new issue
Block a user