Better logging message

This commit is contained in:
Edward Shen 2022-08-02 02:11:32 -07:00
parent 9004c4ed29
commit 909de7f2fa
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -25,7 +25,7 @@ addEventListener('message', (event: MessageEvent<BgData>) => {
let { location, data } = event.data;
console.log('[js-worker] Sending data to rust in a worker thread...');
encrypt_array_buffer(location, data).then(url => {
console.log("done buffer");
console.log("[js-worker] Encryption done.");
postMessage(url);
}).catch(e => console.error(e));
})