Skip to content

Commit

Permalink
fix(#5): missing event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 21, 2018
1 parent 9a01f15 commit d05530a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/disqus.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ function DisqusJS(config) {
d.getElementById('dsqjs-msg').innerHTML = '你可能无法访问 Disqus,已启用评论基础模式。如需完整体验请针对 disq.us | disquscdn.com | disqus.com 启用代理并 <a id="dsqjs-reload-disqus" class="dsqjs-msg-btn">尝试完整 Disqus 模式</a> | <a id="dsqjs-force-disqus" class="dsqjs-msg-btn">强制完整 Disqus 模式</a>。'
d.getElementById('dsqjs-header').classList.remove('dsqjs-hide')
d.getElementById('dsqjs-post-container').innerHTML = '<div class="dsqjs-no-comment">这里冷冷清清的,一条评论都没有</div>'
d.getElementById('dsqjs-reload-disqus').addEventListener('click', checkDisqus);
d.getElementById('dsqjs-force-disqus').addEventListener('click', forceDisqus);
} else {
// 评DisqusJS 加载错误
loadError()
Expand Down

0 comments on commit d05530a

Please sign in to comment.