mirror of
https://github.com/privacy-scaling-explorations/emp-wasm.git
synced 2026-01-09 10:07:54 -05:00
fix: set correct check
This commit is contained in:
@@ -11,7 +11,7 @@ export default function secure2PC(
|
||||
input: Uint8Array,
|
||||
io: IO,
|
||||
): Promise<Uint8Array> {
|
||||
if (typeof Worker === 'undefined' || Bun) {
|
||||
if (typeof Worker === 'undefined' || typeof Bun !== 'undefined') {
|
||||
return nodeSecure2PC(party, circuit, input, io);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user