mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
refactor: update disqus url to HTTPS
This commit is contained in:
parent
2e1c10776a
commit
518f311c5a
@ -380,14 +380,14 @@ function router() {
|
|||||||
window.disqus_shortname = 'es6';
|
window.disqus_shortname = 'es6';
|
||||||
window.disqus_identifier = (location.hash ? location.hash.replace("#", "") : 'READEME');
|
window.disqus_identifier = (location.hash ? location.hash.replace("#", "") : 'READEME');
|
||||||
window.disqus_title = $(ditto.content_id + " h1").text();
|
window.disqus_title = $(ditto.content_id + " h1").text();
|
||||||
window.disqus_url = 'http://es6.ruanyifeng.com/' + (location.hash ? location.hash.replace("#", "") : 'README');
|
window.disqus_url = 'https://es6.ruanyifeng.com/' + (location.hash ? location.hash.replace("#", "") : 'README');
|
||||||
|
|
||||||
// http://docs.disqus.com/developers/universal/
|
// http://docs.disqus.com/developers/universal/
|
||||||
(function() {
|
(function() {
|
||||||
var dsq = document.createElement('script');
|
var dsq = document.createElement('script');
|
||||||
dsq.type = 'text/javascript';
|
dsq.type = 'text/javascript';
|
||||||
dsq.async = true;
|
dsq.async = true;
|
||||||
dsq.src = 'http://' + window.disqus_shortname + '.disqus.com/embed.js';
|
dsq.src = 'https://' + window.disqus_shortname + '.disqus.com/embed.js';
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
})();
|
})();
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user