File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 141
141
}
142
142
143
143
function checkDisqus ( ) {
144
+ $$ ( 'disqus_thread' ) . innerHTML = `<div id="dsqjs"><section><div id="dsqjs-msg">正在检查 Disqus 能否访问...</div></section><footer><p class="dsqjs-footer">Powered by <a class="dsqjs-disqus-logo" href="https://disqus.com" rel="nofollow noopener noreferrer" target="_blank"></a> & <a href="https://github.com/SukkaW/DisqusJS" target="_blank">DisqusJS</a></p></footer></div>` ;
145
+
144
146
// 测试 Disqus 的域名
145
147
// *.disquscdn.com 没有被墙所以不做检查
146
148
let domain = [ 'disqus.com' , `${ disqusjs . config . shortname } .disqus.com` ] ,
150
152
let checker = ( ) => {
151
153
// 测试域名数量 ==== 测试次数 === 成功次数
152
154
// 如果 truw 则认定可以 Disqus 可以连通
153
- if ( domain . length === test === success ) {
155
+ if ( domain . length === test && test === success ) {
154
156
forceDisqus ( )
155
157
// 否则认为 Disqus 无法连通
156
158
} else if ( domain . length === test ) {
You can’t perform that action at this time.
0 commit comments