()
| 58432 | return this; |
| 58433 | } |
| 58434 | _loadConfiguration() { |
| 58435 | let configuration = {}; |
| 58436 | if (this.storage) { |
| 58437 | const serializedConfiguration = this.storage.getItem(this.id); |
| 58438 | configuration = serializedConfiguration ? JSON.parse(serializedConfiguration) : {}; |
| 58439 | } |
| 58440 | Object.assign(this.config, configuration); |
| 58441 | return this; |
| 58442 | } |
| 58443 | } |
| 58444 | exports.default = LocalStorage; |
| 58445 |