From b6d5db3b5509e3eefd44113d6276c0cb570a8879 Mon Sep 17 00:00:00 2001 From: Raccoon Date: Sat, 12 Jun 2021 19:58:19 +0800 Subject: [PATCH] fix: should not clear guest history when guest pin note Signed-off-by: Raccoon --- public/js/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/history.js b/public/js/history.js index da39f095..4490aee9 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -181,7 +181,7 @@ export function getStorageHistory (callback) { let data = store.get('notehistory') if (data) { if (typeof data === 'string') { data = JSON.parse(data) } - callback(data) + return callback(data) } // eslint-disable-next-line standard/no-callback-literal callback([])