We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba9110 commit 2a656a0Copy full SHA for 2a656a0
html-components/list/web-console/web-console.html
@@ -168,7 +168,7 @@ <h3>
168
169
170
var md_txt;
171
- var cache;
+ var cache = {};
172
173
174
//:
@@ -265,8 +265,9 @@ <h3>
265
266
267
async function get(url){
268
-
+ debug('get',url);
269
if(cache[url]){
270
+ debug('cache');
271
return {txt:cache[url]};
272
}
273
@@ -292,7 +293,8 @@ <h3>
292
293
return {error};
294
295
- var txt = await res.text();
296
+ var txt = await res.text();
297
+ cache[url] = txt;
298
return {txt};
299
300
}//get
0 commit comments