Skip to content

Commit

Permalink
Fix extension loc not updating on Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
killergerbah committed Jul 4, 2024
1 parent c5abd4b commit 9dac83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/src/services/extension-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const settings = new SettingsProvider(new ExtensionSettingsStorage());

// As of this writing, session storage is not accessible to content scripts on Firefox so we use local storage instead.
// Since unlike session storage, local storage is not automatically cleared, we clear it manually once a day.
const storage = isFirefoxBuild ? chrome.storage.session : chrome.storage.local;
const storage = isFirefoxBuild ? chrome.storage.local : chrome.storage.session;
const firefoxTtl = 3600 * 24 * 1000; // 1 day

export const fetchExtensionConfig = async (noCache = false): Promise<ExtensionConfig | undefined> => {
Expand Down

0 comments on commit 9dac83f

Please sign in to comment.