| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dbaf498 commit 53300d3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -242,7 +242,7 @@ within each turn of the Node.js event loop. | |||
| 242 | 242 | // before any other promise jobs. | |
| 243 | 243 | ||
| 244 | 244 | DataHandler.prototype.load = async function load(key) { | |
| 245 | - const hit = this._cache.get(url); | ||
| 245 | + const hit = this._cache.get(key); | ||
| 246 | 246 | if (hit !== undefined) { | |
| 247 | 247 | queueMicrotask(() => { | |
| 248 | 248 | this.emit('load', hit); | |
@@ -251,7 +251,7 @@ DataHandler.prototype.load = async function load(key) { | |||
| 251 | 251 | } | |
| 252 | 252 | ||
| 253 | 253 | const data = await fetchData(key); | |
| 254 | - this._cache.set(url, data); | ||
| 254 | + this._cache.set(key, data); | ||
| 255 | 255 | this.emit('load', data); | |
| 256 | 256 | }; | |
| 257 | 257 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments