You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
var disqus_config = function () {this.page.url=' ';// Replace PAGE_URL with your page's canonical URL variablethis.page.identifier=' ';// Replace PAGE_IDENTIFIER with your page's unique identifier variable};
(function () {vard=document,s=d.createElement('script');s.src='https://eallion.disqus.com/embed.js';// Replace SITE_URL with your site's URLs.setAttribute('data-timestamp',+newDate());(d.head||d.body).appendChild(s);})();
// Disqus theme switching
document.addEventListener('themeChanged', function (e) {if(document.readyState=='complete'){DISQUS.reset({reload: true,config: disqus_config});}});</script>
当 DisqusJS 加载完以后,切换网站的深色(或浅色)样式,评论样式不能跟随适配。我发现我也提过这样的 Issue,现在解决了,分享一下。每个网站切换深色模式的方法不一样,所以感觉不太适合提 PR。
ref: https://help.disqus.com/en/articles/1717163-using-disqus-on-ajax-sites
The text was updated successfully, but these errors were encountered: