MCPcopy Create free account
hub / github.com/microsoft/SandDance / getItem

Function getItem

docs/app/js/sanddance-app.js:23569–23577  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

23567 */ parcelHelpers.export(exports, "setItem", ()=>setItem);
23568var _getWindow = require("./dom/getWindow");
23569function getItem(key) {
23570 var result = null;
23571 try {
23572 var win = (0, _getWindow.getWindow)();
23573 result = win ? win.sessionStorage.getItem(key) : null;
23574 } catch (e) {
23575 /* Eat the exception */ }
23576 return result;
23577}
23578function setItem(key, data) {
23579 var _a;
23580 try {

Callers 1

createArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected