Skip to content

Commit

Permalink
Some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Dec 16, 2019
1 parent 8a9b8ca commit dae6ed7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions scripts/events/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ module.exports = hexo => {
merge(hexo.config, data.next);
merge(hexo.theme.config, data.next);
}
} else {
merge(hexo.theme.config, hexo.config.theme_config);
}

if (hexo.theme.config.cache && hexo.theme.config.cache.enable && hexo.config.relative_link) {
Expand Down
2 changes: 1 addition & 1 deletion source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ NexT.utils = {
},

loadComments: function(element, callback) {
if (!CONFIG.comments.lazyload) {
if (!CONFIG.comments.lazyload || !element) {
callback();
return;
}
Expand Down

1 comment on commit dae6ed7

@stevenjoezhang
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.