File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ extern crate log;
66
77pub mod editor_api;
88pub mod helpers;
9- #[ cfg( feature = "native" ) ]
109pub mod native_communcation;
1110
1211use editor:: messages:: prelude:: * ;
You can’t perform that action at this time.
0 commit comments