]> git.codecow.com Git - libnemo.git/commitdiff
Call own method to destroy item for consistency.
authorChris Duncan <chris@zoso.dev>
Thu, 3 Jul 2025 17:07:05 +0000 (10:07 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 3 Jul 2025 17:07:05 +0000 (10:07 -0700)
src/lib/workers/safe.ts

index 2e61deeacf2d4b6033ecbef2d08988f478ce1487..9d891c0d9dec64c4a6f1f08dda3a4f6a76f8e97e 100644 (file)
@@ -184,7 +184,7 @@ export class Safe extends WorkerInterface {
                        const decrypted = await subtle.decrypt({ name: 'AES-GCM', iv: iv.buffer }, passkey, encrypted)
                        const decoded = buffer.toUtf8(decrypted)
                        const data = JSON.parse(decoded)
-                       this.#storage.removeItem(name)
+                       this.destroy(name)
                        return data
                } catch (err) {
                        return null