Skip to content

Commit

Permalink
Merge pull request #39 from exhibitionist-digital/proper-export
Browse files Browse the repository at this point in the history
Update cache.js
  • Loading branch information
mashaal authored Feb 19, 2022
2 parents 4f26ac4 + 3e9c60c commit d75fae8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cache.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default ultraCache = (cache) => {
const ultraCache = (cache) => {
if (self.__ultra instanceof Array) return new Map(self.__ultra);
else if (cache instanceof Map) return cache;
else return new Map();
};

export default ultraCache;

0 comments on commit d75fae8

Please sign in to comment.