Skip to content

Commit

Permalink
Expose cache.store() via window.portalDetail.store() (IITC-CE#613)
Browse files Browse the repository at this point in the history
Expose cache.store() via window.portalDetail.store()
This introduces a new method that allows data to be written into the portalDetail cache.
  • Loading branch information
Schlepptop authored Jan 8, 2023
1 parent 647922d commit 0186928
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/code/portal_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ window.portalDetail.get = function(guid) {
return cache.get(guid);
}

window.portalDetail.store = function (guid, dict, freshtime) {
return cache.store(guid, dict, freshtime);
};

window.portalDetail.isFresh = function(guid) {
return cache.isFresh(guid);
}
Expand Down

0 comments on commit 0186928

Please sign in to comment.