(force = false)
| 123 | } |
| 124 | |
| 125 | async loadCustomCollection(force = false): Promise<IconifyJSON[]> { |
| 126 | if (force) { |
| 127 | this.clientBundleVersion += 1 |
| 128 | this._customCollections = undefined |
| 129 | } |
| 130 | if (!this._customCollections) { |
| 131 | this._customCollections = this._loadCustomCollection() |
| 132 | .then((collections) => { |
| 133 | if (this._customCollections) |
| 134 | this._customCollections = collections |
| 135 | return collections |
| 136 | }) |
| 137 | } |
| 138 | return this._customCollections |
| 139 | } |
| 140 | |
| 141 | private async _loadCustomCollection(): Promise<IconifyJSON[]> { |
| 142 | return Promise.all( |
no test coverage detected