(id, defaultSettings)
| 1171 | |
| 1172 | var 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", |
nothing calls this directly
no test coverage detected