Skip to content

Commit bb21608

Browse files
chore(lit-core): LIT-4016 - Add log to tinny init so we can see connected event is being emitted as expected
- Removed misleading globalThis console.warn -- it was backwards, in that our code doesn't actually override existing entries on `globalThis` -- it actually _skips_ initializing any that already exist
1 parent f2f46fd commit bb21608

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

local-tests/setup/tinny-environment.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -261,23 +261,11 @@ export class TinnyEnvironment {
261261
throw new Error(`Network not supported: "${this.network}"`);
262262
}
263263

264-
if (globalThis.wasmExports) {
265-
console.warn(
266-
'WASM modules already loaded. Will overide when connect is called'
267-
);
268-
}
269-
270-
if (globalThis.wasmECDSA) {
271-
console.warn(
272-
'WASM modules already loaded. wil overide. when connect is called'
273-
);
274-
}
275-
276-
if (globalThis.wasmSevSnpUtils) {
277-
console.warn(
278-
'WASM modules already loaded. wil overide. when connect is called'
264+
this.litNodeClient.on('connected', () => {
265+
console.log(
266+
'Received `connected` event from `litNodeClient. Ready to go!'
279267
);
280-
}
268+
});
281269

282270
await this.litNodeClient.connect();
283271

0 commit comments

Comments
 (0)