mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 01:46:07 +00:00
make sure that worker is only called in child process, even if EncryptionWorker.ts was imported by main thread to make sure it was builded
This commit is contained in:
parent
249c5dc32d
commit
fdec1ccbb0
@ -46,7 +46,7 @@ export const SecretKeyCryptographyCreateKey = (
|
||||
return encryptionKeyHash.readBigUInt64LE()
|
||||
}
|
||||
|
||||
if (CONFIG.USE_CRYPTO_WORKER === true) {
|
||||
if (CONFIG.USE_CRYPTO_WORKER === true && typeof process.send === 'function') {
|
||||
worker({
|
||||
SecretKeyCryptographyCreateKey,
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user