fix: set correct check

This commit is contained in:
cedoor
2025-02-03 12:40:07 +00:00
parent 5b5cd116d5
commit e167e1e113

View File

@@ -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);
}