From 40712a5a8ac3beeaac2aeb2c07f96df51ceb7655 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 2 Feb 2023 23:55:28 +0800 Subject: [PATCH] fix save bug --- src/lib/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common.ts b/src/lib/common.ts index b0b2687..ce654b8 100644 --- a/src/lib/common.ts +++ b/src/lib/common.ts @@ -18,7 +18,7 @@ export default class Common { if (typeof data === 'string' || typeof data === 'number') { dataStr = data.toString() } - if (dataStr) { + if (dataStr != null) { localStorage.setItem('pgp-' + name, dataStr) } }