()
| 127 | } |
| 128 | |
| 129 | async init() { |
| 130 | if (this.initalized) { |
| 131 | return; |
| 132 | } |
| 133 | const attributes = await mvelo.storage.get(this.storageKey); |
| 134 | if (attributes) { |
| 135 | Object.keys(attributes).forEach(key => this.map.set(key, attributes[key])); |
| 136 | } |
| 137 | this.initialized = true; |
| 138 | } |
| 139 | |
| 140 | get(key, cb) { |
| 141 | let value; |