MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / configFromSession

Function configFromSession

core/src/global/config.ts:40–47  ·  view source on GitHub ↗
(win: Window)

Source from the content-addressed store, hash-verified

38export const config = /*@__PURE__*/ new Config();
39
40export const configFromSession = (win: Window): any => {
41 try {
42 const configStr = win.sessionStorage.getItem(IONIC_SESSION_KEY);
43 return configStr !== null ? JSON.parse(configStr) : {};
44 } catch (e) {
45 return {};
46 }
47};
48
49export const saveConfig = (win: Window, c: any) => {
50 try {

Callers 1

initializeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected