Skip to content

Commit b4853f2

Browse files
authored
fix: should not clear guest history when guest pin note
1 parent 8c20d9f commit b4853f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function getStorageHistory (callback) {
181181
let data = store.get('notehistory')
182182
if (data) {
183183
if (typeof data === 'string') { data = JSON.parse(data) }
184-
callback(data)
184+
return callback(data)
185185
}
186186
// eslint-disable-next-line standard/no-callback-literal
187187
callback([])

0 commit comments

Comments
 (0)