From 83e0d88adb4826f6e3573db2dcc4014d976010e3 Mon Sep 17 00:00:00 2001 From: Pierre Leroux Date: Wed, 16 Aug 2023 16:55:06 +0200 Subject: [PATCH] up --- src/common/redux/states/annotation.ts | 2 +- src/renderer/reader/redux/sagas/annotation.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/redux/states/annotation.ts b/src/common/redux/states/annotation.ts index 9b0be9368..96a04d66d 100644 --- a/src/common/redux/states/annotation.ts +++ b/src/common/redux/states/annotation.ts @@ -14,7 +14,7 @@ export interface IAnnotationState { uuid: string; name: string; // like bookmark name comment: string; // describe annotation mark - hash: string; // md5 ( `${href}:${JSON.stringify(def)}` )) + hash: string; // sha256 ( `${href}:${JSON.stringify(def)}` )) href: string; // from IHighlightHandlerState def: IHighlightDefinition; // from IHighlightHandlerState } diff --git a/src/renderer/reader/redux/sagas/annotation.ts b/src/renderer/reader/redux/sagas/annotation.ts index f9a6d4e4a..8c5595a37 100644 --- a/src/renderer/reader/redux/sagas/annotation.ts +++ b/src/renderer/reader/redux/sagas/annotation.ts @@ -74,8 +74,6 @@ function* selectionInfoWatcher(action: readerLocalActionSetLocator.TAction): Sag } yield* putTyped(readerLocalActionAnnotations.push.build(annotation)); } - - crypto.subtle.digest("SHA-256", Buffer.from("")); } function* annotationUIEnable(_action: readerLocalActionAnnotationUI.enable.TAction): SagaIterator {