Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add support for database backup

thecodrr07d7658c80b3
diff --git a/apps/web/src/interfaces/storage.js b/apps/web/src/interfaces/storage.js
index af876f458..fcf634621 100644
--- a/apps/web/src/interfaces/storage.js
+++ b/apps/web/src/interfaces/storage.js
@@ -32,12 +32,17 @@ function clear() {
return localforage.clear();
}
+function getAllKeys() {
+ return localforage.keys();
+}
+
export default {
read,
readMulti,
write,
remove,
clear,
+ getAllKeys,
deriveKey: crypto.deriveKey,
encrypt: crypto.encrypt,
decrypt: crypto.decrypt,