(url)
| 24133 | return location.hostname |
| 24134 | } |
| 24135 | async appendScript(url) { |
| 24136 | if (!url) return undefined |
| 24137 | if (!this._loadingPromises) this._loadingPromises = {} |
| 24138 | if (this._loadingPromises[url]) return this._loadingPromises[url] |
| 24139 | if (this.isNodeJs()) return undefined |
| 24140 | this._loadingPromises[url] = this._appendScript(url) |
| 24141 | return this._loadingPromises[url] |
| 24142 | } |
| 24143 | _appendScript(url) { |
| 24144 | //https://bradb.net/blog/promise-based-js-script-loader/ |
| 24145 | return new Promise(function (resolve, reject) { |
nothing calls this directly
no test coverage detected