Log in other workers too

This commit is contained in:
Manav Rathi
2025-02-19 12:08:40 +05:30
parent 802ad184d2
commit 38d42c67fb
3 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import { logUnhandledErrorsAndRejectionsInWorker } from "@/base/log-web";
import { expose } from "comlink";
import type { StateAddress } from "libsodium-wrappers-sumo";
import * as ei from "./ente-impl";
@@ -98,3 +99,5 @@ export class CryptoWorker {
}
expose(CryptoWorker);
logUnhandledErrorsAndRejectionsInWorker();

View File

@@ -1,3 +1,4 @@
import { logUnhandledErrorsAndRejectionsInWorker } from "@/base/log-web";
import { wait } from "@/utils/promise";
import { expose } from "comlink";
import HeicConvert from "heic-convert";
@@ -19,6 +20,8 @@ export class HEICConvertWorker {
expose(HEICConvertWorker);
logUnhandledErrorsAndRejectionsInWorker();
const heicToJPEG = async (heicBlob: Blob): Promise<Blob> => {
const buffer = new Uint8Array(await heicBlob.arrayBuffer());
const result = await HeicConvert({ buffer, format: "JPEG" });

View File

@@ -1,4 +1,5 @@
import { HTTPError } from "@/base/http";
import { logUnhandledErrorsAndRejectionsInWorker } from "@/base/log-web";
import type { Location } from "@/base/types";
import type { Collection } from "@/media/collection";
import type { EnteFile } from "@/media/file";
@@ -113,6 +114,8 @@ export class SearchWorker {
expose(SearchWorker);
logUnhandledErrorsAndRejectionsInWorker();
/**
* @param s The normalized form of {@link searchString}.
* @param searchString The original search string.