MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / initializeSessionStorageAccess

Function initializeSessionStorageAccess

background.js:895–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

893}
894
895async function initializeSessionStorageAccess() {
896 try {
897 if (chrome.storage?.session?.setAccessLevel) {
898 await chrome.storage.session.setAccessLevel({
899 accessLevel: 'TRUSTED_AND_UNTRUSTED_CONTEXTS',
900 });
901 console.log(LOG_PREFIX, 'Enabled storage.session for content scripts');
902 }
903 } catch (err) {
904 console.warn(LOG_PREFIX, 'Failed to enable storage.session for content scripts:', err?.message || err);
905 }
906}
907
908async function setState(updates) {
909 console.log(LOG_PREFIX, 'storage.set:', JSON.stringify(updates).slice(0, 200));

Callers 1

background.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected