Skip to content

Commit 9c53996

Browse files
authored
Merge pull request #66 from ProLoser/copilot/remove-funcheap-data-19hz
2 parents 05f1df2 + 720a298 commit 9c53996

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

19hz/map.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -886,15 +886,15 @@ class Events {
886886

887887
get() {
888888
if (this.cache) return this.cache;
889-
this.cache = window.localStorage.getItem('events');
889+
this.cache = window.localStorage.getItem('19hz_events');
890890
if (this.cache) this.cache = JSON.parse(this.cache);
891891
return this.cache;
892892
}
893893

894894
set(events) {
895895
try {
896-
window.localStorage.setItem('events', JSON.stringify(events));
897-
window.localStorage.setItem('events_age', Date.now());
896+
window.localStorage.setItem('19hz_events', JSON.stringify(events));
897+
window.localStorage.setItem('19hz_events_age', Date.now());
898898
} catch (e) {
899899
console.error(e);
900900
}
@@ -903,7 +903,7 @@ class Events {
903903
}
904904

905905
age() {
906-
return window.localStorage.getItem('events_age');
906+
return window.localStorage.getItem('19hz_events_age');
907907
}
908908

909909
isFresh(old = 86400) {

0 commit comments

Comments
 (0)