mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 01:54:06 +00:00
bug fix
This commit is contained in:
@@ -11,12 +11,12 @@ let contributions;
|
||||
contributions = JSON.parse(dom.getAttribute('data'));
|
||||
let year = 0;
|
||||
for (const item of contributions) {
|
||||
item.publishDate = unescape(item.publishDate);
|
||||
item.publishDate = decodeURI(item.publishDate);
|
||||
item.date = new Date(item.publishDate);
|
||||
if (item.date.getFullYear() > year) {
|
||||
year = item.date.getFullYear();
|
||||
}
|
||||
item.title = unescape(item.title);
|
||||
item.title = decodeURI(item.title);
|
||||
}
|
||||
|
||||
yearList();
|
||||
|
Reference in New Issue
Block a user