| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c68415c commit bfb1dc0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -319,7 +319,7 @@ within each turn of the Node.js event loop. | |||
| 319 | 319 | // before any other promise jobs. | |
| 320 | 320 | ||
| 321 | 321 | DataHandler.prototype.load = async function load(key) { | |
| 322 | - const hit = this._cache.get(url); | ||
| 322 | + const hit = this._cache.get(key); | ||
| 323 | 323 | if (hit !== undefined) { | |
| 324 | 324 | queueMicrotask(() => { | |
| 325 | 325 | this.emit('load', hit); | |
@@ -328,7 +328,7 @@ DataHandler.prototype.load = async function load(key) { | |||
| 328 | 328 | } | |
| 329 | 329 | ||
| 330 | 330 | const data = await fetchData(key); | |
| 331 | - this._cache.set(url, data); | ||
| 331 | + this._cache.set(key, data); | ||
| 332 | 332 | this.emit('load', data); | |
| 333 | 333 | }; | |
| 334 | 334 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments