Disqus load

This commit is contained in:
Liang Ding 2015-11-30 11:44:49 +08:00
parent ac0cc1ea04
commit 10de6cd3d9
1 changed files with 1 additions and 2 deletions

View File

@ -75,7 +75,7 @@
<script type="text/javascript"> <script type="text/javascript">
var disqus_shortname = 'wide-playground'; var disqus_shortname = 'wide-playground';
var disqus_identifier = {{.fileName}}; var disqus_identifier = {{.fileName}};
var disqus_url = window.location.protocol + "//" + {{.conf.Server}} + {{.conf.Context}} + "/playground/" + {{.fileName}}; var disqus_url = window.location.protocol + "//" + window.location.host + {{.conf.Context}} + "/playground/" + {{.fileName}};
(function() { (function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
@ -97,7 +97,6 @@
<script> <script>
var config = { var config = {
"context": "{{.conf.Context}}", "context": "{{.conf.Context}}",
"server": "{{.conf.Server}}",
"staticServer": "{{.conf.StaticServer}}", "staticServer": "{{.conf.StaticServer}}",
"channel": "{{.conf.Channel}}", "channel": "{{.conf.Channel}}",
"wideSessionId": "{{.sid}}", "wideSessionId": "{{.sid}}",