Skip to content

Commit 5aeab32

Browse files
committed
Disable feature gate for native communication functions
1 parent 4380c8f commit 5aeab32

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

frontend/src/editor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ export async function initWasm() {
2424
if (name.startsWith("__node_registry")) f();
2525
}
2626

27-
if (receiveNativeMessage) {
28-
(window as any).receiveNativeMessage = receiveNativeMessage;
29-
}
30-
3127
wasmImport = await wasmMemory();
3228
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3329
(window as any).imageCanvases = {};
30+
(window as any).receiveNativeMessage = receiveNativeMessage;
3431

3532
// Provide a random starter seed which must occur after initializing the WASM module, since WASM can't generate its own random numbers
3633
const randomSeedFloat = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);

frontend/wasm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ extern crate log;
66

77
pub mod editor_api;
88
pub mod helpers;
9-
#[cfg(feature = "native")]
109
pub mod native_communcation;
1110

1211
use editor::messages::prelude::*;

0 commit comments

Comments
 (0)