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 {