Skip to content

Commit

Permalink
fix #1924: use storage.session in mv2-bg
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Feb 14, 2025
1 parent 95891a6 commit b77d291
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js/storage-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ const StorageExtras = {

export const chromeLocal =
/*@__PURE__*/Object.assign(browser.storage.local, StorageExtras);
/** @type {typeof import('chrome-types').chrome.storage.session} */
export const chromeSession = __.MV3 &&
/*@__PURE__*/Object.assign(chrome.storage.session, StorageExtras);
export const chromeSession = chrome.storage.session;
export const GET_KEYS = !!chromeLocal.getKeys;

0 comments on commit b77d291

Please sign in to comment.