Skip to content

Commit a628d43

Browse files
authored
Update hexo_githubcalendar.js
1 parent dd08198 commit a628d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hexo_githubcalendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
function GithubCalendar(git_githubapiurl,git_color,git_user){
2+
if(document.getElementById('github_loading')){
3+
document.getElementById('github_loading').innerHTML = ""};
24
if(document.getElementById('github_container')){
35
var github_canlendar = (git_user,git_githubapiurl, git_color) => {
46
var git_fixed = 'fixed';
@@ -176,8 +178,6 @@ function GithubCalendar(git_githubapiurl,git_color,git_user){
176178
git_monthindex = git_thisday.substring(5, 7) * 1;
177179
git_montharrbefore = git_month.splice(git_monthindex, 12 - git_monthindex);
178180
git_monthchange = git_montharrbefore.concat(git_month);
179-
if(document.getElementById('github_loading')){
180-
document.getElementById('github_loading').innerHTML = ""};
181181
addweek(data);
182182
addlastmonth();
183183
var html = github_main_box(git_monthchange, git_data, git_user, git_color, git_total, git_thisweekdatacore, git_weekdatacore, git_oneyearbeforeday, git_thisday, git_aweekago, git_amonthago);

0 commit comments

Comments
 (0)