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

Function LocalStorage

docs/tests/v2/es6/js/sanddance.js:1173–1182  ·  view source on GitHub ↗
(id, defaultSettings)

Source from the content-addressed store, hash-verified

1171
1172var LocalStorage = function () {
1173 function LocalStorage(id, defaultSettings) {
1174 var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'sessionStorage';
1175 (0, _classCallCheck2.default)(this, LocalStorage);
1176 this.storage = getStorage(type);
1177 this.id = id;
1178 this.config = {};
1179 Object.assign(this.config, defaultSettings);
1180
1181 this._loadConfiguration();
1182 }
1183
1184 (0, _createClass2.default)(LocalStorage, [{
1185 key: "getConfiguration",

Callers

nothing calls this directly

Calls 2

getStorageFunction · 0.70
_loadConfigurationMethod · 0.45

Tested by

no test coverage detected