Proxy
This commit is contained in:
@@ -140,7 +140,9 @@ export const encryptBlob = (data: BytesOrB64, key: BytesOrB64) =>
|
||||
* strings.
|
||||
*/
|
||||
export const encryptBlobB64 = (data: BytesOrB64, key: BytesOrB64) =>
|
||||
assertInWorker(ei._encryptBlobB64(data, key));
|
||||
inWorker()
|
||||
? ei._encryptBlobB64(data, key)
|
||||
: sharedCryptoWorker().then((w) => w._encryptBlobB64(data, key));
|
||||
|
||||
/**
|
||||
* Encrypt the thumbnail for a file.
|
||||
|
||||
@@ -15,6 +15,7 @@ import * as libsodium from "./libsodium";
|
||||
export class CryptoWorker {
|
||||
encryptBoxB64 = ei._encryptBoxB64;
|
||||
encryptThumbnail = ei._encryptThumbnail;
|
||||
_encryptBlobB64 = ei._encryptBlobB64;
|
||||
encryptMetadataJSON_New = ei._encryptMetadataJSON_New;
|
||||
encryptMetadataJSON = ei._encryptMetadataJSON;
|
||||
decryptBox = ei._decryptBox;
|
||||
|
||||
@@ -80,7 +80,6 @@ export const PeopleHeader: React.FC<PeopleHeaderProps> = ({
|
||||
/>
|
||||
) : (
|
||||
<ClusterPersonOptions
|
||||
person={person}
|
||||
cluster={person.cluster}
|
||||
appContext={appContext}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user