Skip to content

Commit 002bc64

Browse files
committed
chore: simplified localstorage key
1 parent 77fd9d5 commit 002bc64

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/views/Home.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ const fetchGithubStars = async () => {
104104
};
105105
106106
const fetchContributors = async () => {
107-
const CACHE_KEY = 'lotus_contributors_cache_v2';
108-
const CACHE_TIME_KEY = 'lotus_contributors_timestamp_v2';
107+
const CACHE_KEY = 'lotus_contributors_cache';
108+
const CACHE_TIME_KEY = 'lotus_contributors_timestamp';
109109
const TWO_HOURS = 2 * 60 * 60 * 1000;
110110
111111
const specialRoles: Record<number, string> = {
@@ -129,7 +129,9 @@ const fetchContributors = async () => {
129129
return;
130130
}
131131
132-
const response = await fetch(`https://api.github.com/repos/${REPO}/contributors`);
132+
const response = await fetch(
133+
`https://api.github.com/repos/${REPO}/contributors`,
134+
);
133135
if (!response.ok) throw new Error('GitHub API error');
134136
135137
const data = await response.json();

0 commit comments

Comments
 (0)