@@ -22,8 +22,8 @@ export async function main(load, display) {
22
22
// Full workflow, loading then displaying data
23
23
// used for following updates
24
24
const full = async function ( ) {
25
- const data = await load ( ) ;
26
- await display ( data ) ;
25
+ const fullData = await load ( ) ;
26
+ await display ( fullData ) ;
27
27
} ;
28
28
29
29
// React to url changes
@@ -47,9 +47,9 @@ function cacheSet(cache, key, value) {
47
47
// If the cache got too big, remove all elements that were added more
48
48
// than 15 minutes ago.
49
49
if ( Object . keys ( cache ) . length > 100 ) {
50
- for ( const key in cache ) {
51
- if ( cache [ key ] . time < now - 15 * 60 ) {
52
- delete cache [ key ] ;
50
+ for ( const cacheKey in cache ) {
51
+ if ( cache [ cacheKey ] . time < now - 15 * 60 ) {
52
+ delete cache [ cacheKey ] ;
53
53
}
54
54
}
55
55
}
@@ -348,14 +348,14 @@ function canDisplay() {
348
348
return document . readyState === "complete" ;
349
349
}
350
350
351
- export function message ( cssClass , message ) {
351
+ export function message ( cssClass , messageText ) {
352
352
if ( ! canDisplay ( ) ) {
353
353
return ;
354
354
}
355
355
356
356
const box = document . getElementById ( "message" ) ;
357
357
box . className = "message " + cssClass ;
358
- box . textContent = message ;
358
+ box . textContent = messageText ;
359
359
box . style . display = "inherit" ;
360
360
}
361
361
0 commit comments