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:
Hakan SevenandClaude Opus 5.5 committed 2026-10-04 20:53:11 +03:00
1 parent 440adec834
commit f14b675ff7
4 files changed
+10 -1

No files matched your search

+1
View File
@@ -528,6 +528,7 @@ impl OpenCADStudio {
Task::none(),
);
}
#[cfg(not(target_arch = "wasm32"))]
if op == "tools" {
return (
json!({