Fix saveHistoryToStorage not correctly fallback to cookie

This commit is contained in:
Wu Cheng-Han 2016-10-10 20:49:42 +08:00
parent b54b3cbe69
commit b6e68b2d36
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ function saveHistoryToStorage(notehistory) {
if (store.enabled) if (store.enabled)
store.set('notehistory', JSON.stringify(notehistory)); store.set('notehistory', JSON.stringify(notehistory));
else else
saveHistoryToStorage(notehistory); saveHistoryToCookie(notehistory);
} }
function saveHistoryToCookie(notehistory) { function saveHistoryToCookie(notehistory) {