Skip to content

Commit

Permalink
Persist IndexedDB
Browse files Browse the repository at this point in the history
  • Loading branch information
sienori committed Sep 8, 2021
1 parent 0162de3 commit 630a835
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/background/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let DB;
export default {
init: () => {
log.log(logDir, "init()");
navigator.storage.persist();
const request = window.indexedDB.open("sessions", 1);

request.onupgradeneeded = e => {
Expand Down
1 change: 1 addition & 0 deletions src/manifest-ff.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"permissions": [
"storage",
"unlimitedStorage",
"tabs",
"cookies",
"downloads",
Expand Down
1 change: 1 addition & 0 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"default_locale": "en",
"permissions": [
"storage",
"unlimitedStorage",
"tabs",
"downloads",
"identity"
Expand Down

0 comments on commit 630a835

Please sign in to comment.