@@ -24,7 +24,7 @@ function getCachedExtensions() {
2424
2525 // Application version has changed
2626 if ( cachedVersion !== config . APP . version ) {
27- debug ( `[Runtime Config ] Version mismatch (cached: ${ cachedVersion } , current: ${ config . APP . version } )` ) ;
27+ debug ( `[loadExtensions ] Version mismatch (cached: ${ cachedVersion } , current: ${ config . APP . version } )` ) ;
2828 return null ;
2929 }
3030
@@ -33,14 +33,14 @@ function getCachedExtensions() {
3333
3434 // Check if cache is still valid (within TTL)
3535 if ( cacheAge > CACHE_TTL ) {
36- debug ( '[load-extensions ] Cache expired' ) ;
36+ debug ( '[loadExtensions ] Cache expired' ) ;
3737 return null ;
3838 }
3939
40- debug ( `[load-extensions ] Using cached extensions list (age: ${ Math . round ( cacheAge / 1000 ) } s)` ) ;
40+ debug ( `[loadExtensions ] Using cached extensions list (age: ${ Math . round ( cacheAge / 1000 ) } s)` ) ;
4141 return cacheData . extensions ;
4242 } catch ( e ) {
43- debug ( `[load-extensions ] Failed to read cache: ${ e . message } ` ) ;
43+ debug ( `[loadExtensions ] Failed to read cache: ${ e . message } ` ) ;
4444 return null ;
4545 }
4646}
@@ -58,9 +58,9 @@ function setCachedExtensions(extensions) {
5858 } ;
5959 localStorage . setItem ( CACHE_KEY , JSON . stringify ( cacheData ) ) ;
6060 localStorage . setItem ( CACHE_VERSION_KEY , config . APP . version ) ;
61- debug ( '[load-extensions ] Extensions list cached to localStorage' ) ;
61+ debug ( '[loadExtensions ] Extensions list cached to localStorage' ) ;
6262 } catch ( e ) {
63- debug ( `[load-extensions ] Failed to cache extensions: ${ e . message } ` ) ;
63+ debug ( `[loadExtensions ] Failed to cache extensions: ${ e . message } ` ) ;
6464 }
6565}
6666
@@ -73,9 +73,9 @@ export function clearExtensionsCache() {
7373 try {
7474 localStorage . removeItem ( CACHE_KEY ) ;
7575 localStorage . removeItem ( CACHE_VERSION_KEY ) ;
76- debug ( '[load-extensions ] Cache cleared' ) ;
76+ debug ( '[loadExtensions ] Cache cleared' ) ;
7777 } catch ( e ) {
78- debug ( `[load-extensions ] Failed to clear cache: ${ e . message } ` ) ;
78+ debug ( `[loadExtensions ] Failed to clear cache: ${ e . message } ` ) ;
7979 }
8080}
8181
@@ -111,7 +111,7 @@ export default async function loadExtensions() {
111111 . then ( ( resp ) => resp . json ( ) )
112112 . then ( ( extensions ) => {
113113 const endTime = performance . now ( ) ;
114- debug ( `[load-extensions ] Fetched from server in ${ ( endTime - startTime ) . toFixed ( 2 ) } ms` ) ;
114+ debug ( `[loadExtensions ] Fetched from server in ${ ( endTime - startTime ) . toFixed ( 2 ) } ms` ) ;
115115
116116 // Cache the result
117117 setCachedExtensions ( extensions ) ;
0 commit comments