From a919e8bf0945a1962cb4ea634b65bb7335889098 Mon Sep 17 00:00:00 2001 From: LC mac Date: Fri, 30 Jan 2026 00:36:09 +0800 Subject: [PATCH] chore: small fix in 1.4.0 --- index.html | 2 +- src/lib/sessionCrypto.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/index.html b/index.html index 0453369..fca6091 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - SeedPGP v1.1 + SeedPGP v1.4 diff --git a/src/lib/sessionCrypto.ts b/src/lib/sessionCrypto.ts index 2f696d0..91baa69 100644 --- a/src/lib/sessionCrypto.ts +++ b/src/lib/sessionCrypto.ts @@ -56,13 +56,10 @@ export interface EncryptedBlob { * @returns A promise that resolves to the generated or existing CryptoKey. */ export async function getSessionKey(): Promise { - console.log('getSessionKey called.'); if (sessionKey) { - console.log('Session key already exists.'); return sessionKey; } - console.log('Generating new session key...'); const key = await window.crypto.subtle.generateKey( { name: KEY_ALGORITHM, @@ -72,7 +69,6 @@ export async function getSessionKey(): Promise { ['encrypt', 'decrypt'], ); sessionKey = key; - console.log('New session key generated and stored.'); return key; } @@ -82,9 +78,7 @@ export async function getSessionKey(): Promise { * @returns A promise that resolves to an EncryptedBlob. */ export async function encryptJsonToBlob(data: T): Promise { - console.log('encryptJsonToBlob called.'); if (!sessionKey) { - console.error('ERROR: Session key not initialized when encryptJsonToBlob was called.'); throw new Error('Session key not initialized. Call getSessionKey() first.'); }