Skip to content

Commit

Permalink
Update hexo_githubcalendar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zfour authored Mar 5, 2021
1 parent 7504807 commit 08abf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hexo_githubcalendar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
function GithubCalendar(git_githubapiurl,git_color,git_user){
if(document.getElementById('github_loading')){
document.getElementById('github_loading').remove()};
if(document.getElementById('github_container')){
var github_canlendar = (git_user,git_githubapiurl, git_color) => {
var git_fixed = 'fixed';
Expand Down Expand Up @@ -165,6 +163,8 @@ function GithubCalendar(git_githubapiurl,git_color,git_user){
}

fetch(git_githubapiurl).then(data => data.json()).then(data => {
if(document.getElementById('github_loading')){
document.getElementById('github_loading').remove()};
git_data = data.contributions;
git_total = data.total;
git_first2date = git_data[48];
Expand Down

0 comments on commit 08abf89

Please sign in to comment.