@limetech/lime-elements
Version:
17 lines (16 loc) • 460 B
JavaScript
import { CacheStorageIconCache } from './cache-storage-icon-cache';
import { InMemoryIconCache } from './in-memory-icon-cache';
const CACHE_NAME = '@limetech/lime-elements/icons';
function createIconCache() {
try {
const cache = caches.open(CACHE_NAME);
return new CacheStorageIconCache(cache);
}
catch (_a) {
return new InMemoryIconCache();
}
}
export default (() => {
return createIconCache();
})();
//# sourceMappingURL=factory.js.map