Log in other workers too
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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" });
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user