esphome-docs/_static/disqus.js
Otto Winter f4c1d31a1d
Revert "Remove disqus"
This reverts commit 19a22e8b39.
2019-03-06 11:02:03 +01:00

14 lines
429 B
JavaScript

(function() {
var d = document, s = d.createElement('script');
s.src = 'https://esphomelib.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
var disqus_config = function () {
let disqusThread = document.getElementById("disqus_thread");
if (disqusThread === null)
return;
this.page.identifier = disqusThread.getAttribute('data-disqus-identifier');
};