We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b55bf97 + b6d5db3 commit a7564e7Copy full SHA for a7564e7
1 file changed
public/js/history.js
@@ -181,7 +181,7 @@ export function getStorageHistory (callback) {
181
let data = store.get('notehistory')
182
if (data) {
183
if (typeof data === 'string') { data = JSON.parse(data) }
184
- callback(data)
+ return callback(data)
185
}
186
// eslint-disable-next-line standard/no-callback-literal
187
callback([])
0 commit comments