diff options
-rw-r--r-- | js/assets.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/assets.js b/js/assets.js index 7a04a32..e62bb5d 100644 --- a/js/assets.js +++ b/js/assets.js @@ -105,6 +105,16 @@ cacheRegistryCallbacks = [callback]; cacheRegistryReady = true; + + let onRead = function (bin) { + if (!bin || !bin['assetCacheRegistry']) { + cacheRegistry = {}; + } else { + cacheRegistry = bin['assetCacheRegistry']; + } + }; + + vAPI.cacheStorage.get('assetCacheRegistry', onRead); let f; while ((f = cacheRegistryCallbacks.shift())) { |