Skip to content

Commit 2a656a0

Browse files
save file
1 parent bba9110 commit 2a656a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

html-components/list/web-console/web-console.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ <h3>
168168

169169

170170
var md_txt;
171-
var cache;
171+
var cache = {};
172172

173173

174174
//:
@@ -265,8 +265,9 @@ <h3>
265265

266266

267267
async function get(url){
268-
268+
debug('get',url);
269269
if(cache[url]){
270+
debug('cache');
270271
return {txt:cache[url]};
271272
}
272273

@@ -292,7 +293,8 @@ <h3>
292293
return {error};
293294
}
294295

295-
var txt = await res.text();
296+
var txt = await res.text();
297+
cache[url] = txt;
296298
return {txt};
297299

298300
}//get

0 commit comments

Comments
 (0)